add autoflake to lint and move config to pyproject.toml

This commit is contained in:
pacrob
2023-10-12 08:57:17 -06:00
committed by Paul Robinson
parent c3c29ddf43
commit 86440ee879
7 changed files with 78 additions and 64 deletions

View File

@ -25,7 +25,10 @@ clean-pyc:
find . -name '__pycache__' -exec rm -rf {} +
lint:
pre-commit run --all-files --show-diff-on-failure
@pre-commit run --all-files --show-diff-on-failure || ( \
echo "\n\n\n * pre-commit should have fixed the errors above. Running again to make sure everything is good..." \
&& pre-commit run --all-files --show-diff-on-failure \
)
test:
pytest tests