Add isort to make check/fix

This commit is contained in:
Nicolas Stalder
2019-08-13 22:49:27 +02:00
parent 1a2ac83a5a
commit 6edab1a23d
2 changed files with 4 additions and 5 deletions
+2 -1
View File
@@ -38,9 +38,10 @@ update:
# ensure this passes before commiting
check:
$(BIN)/black --check tests/
$(BIN)/isort --check-only --recursive tests/
# automatic code fixes
fix: black
fix: black isort
black:
$(BIN)/black tests/
+2 -4
View File
@@ -39,13 +39,11 @@ pytest --sim tests/standard
# Contributing
We use `black` to prevent code formatting discussions.
We use `black` and `isort` to prevent code formatting discussions.
The `make venv` setup method installs git pre-commit hooks that check conformance automatically.
You can also `make check` and `make fix` manually, or use an editor plugin.
Additionally, please run `make isort` before committing.
You can also `make check` and `make fix` manually, or use an editor plugins.
# License