Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ clean: ## Clean build artifacts and caches
find . -type d -name __pycache__ -exec rm -rf {} +

test: ## Run tests
poetry run pytest
poetry run pytest -p no:anchorpy

stats: ## Show code quality statistics
@echo "=== Docstring Coverage ==="
Expand All @@ -58,10 +58,10 @@ TEST_FLAGS := -xvv -s -p no:anchorpy
.PHONY: watch
watch:
@if [ -z "$(filter-out $@,$(MAKECMDGOALS))" ]; then \
poetry run ptw --runner "poetry run pytest $(TEST_FLAGS) -W ignore::DeprecationWarning"; \
poetry run ptw --runner "poetry run pytest $(TEST_FLAGS) -W ignore::DeprecationWarning" --config "ptw.ini"; \
else \
path_arg="$(filter-out $@,$(MAKECMDGOALS))";\
poetry run ptw --runner "poetry run pytest tests/$$path_arg $(TEST_FLAGS) -W ignore::DeprecationWarning";\
poetry run ptw --runner "poetry run pytest tests/$$path_arg $(TEST_FLAGS) -W ignore::DeprecationWarning" --config "ptx.ini";\
fi

# This pattern rule handles any additional arguments
Expand Down
2 changes: 2 additions & 0 deletions ptw.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
addopts = "-p no:anchorpy"
Loading