From aacc175ee7ffb313c0d06103d7778f82d9ebcf8a Mon Sep 17 00:00:00 2001 From: idatsy Date: Sat, 15 Feb 2025 15:23:31 +0000 Subject: [PATCH 1/2] fix: loosen doc requirements --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index ed50d59..7c0237d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,6 +85,14 @@ ignore = [ "D401", # imperative mood "E501", # line too long (handled by formatter) "W291", # trailing whitespace: fixed by ruff anyway + "W291", # trailing whitespace: fixed by ruff anyway + "D100", # missing docstring in public module + "D101", # missing docstring in public class + "D102", # missing docstring in public method + "D103", # missing docstring in public function + "D104", # missing docstring in public package + "D105", # missing docstring in magic method + "D107", # missing docstring in __init__ ] fixable = ["ALL"] unfixable = [] From c4f0443ecb5b1205c3d5fb170d0af2b322516fd3 Mon Sep 17 00:00:00 2001 From: idatsy Date: Wed, 26 Feb 2025 19:00:18 +0000 Subject: [PATCH 2/2] fix: update pytest watch ond pytest commands --- Makefile | 6 +++--- ptw.ini | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 ptw.ini diff --git a/Makefile b/Makefile index 3e59632..79c24a3 100644 --- a/Makefile +++ b/Makefile @@ -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 ===" @@ -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 diff --git a/ptw.ini b/ptw.ini new file mode 100644 index 0000000..841944c --- /dev/null +++ b/ptw.ini @@ -0,0 +1,2 @@ +[pytest] +addopts = "-p no:anchorpy"