diff --git a/Makefile b/Makefile index 9c84f88..85aa451 100644 --- a/Makefile +++ b/Makefile @@ -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/ diff --git a/README.md b/README.md index e3e366a..d99406c 100644 --- a/README.md +++ b/README.md @@ -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