From 6edab1a23d2aa6660b38f3c424a615c6265b9167 Mon Sep 17 00:00:00 2001 From: Nicolas Stalder Date: Tue, 13 Aug 2019 22:48:54 +0200 Subject: [PATCH] Add isort to make check/fix --- Makefile | 3 ++- README.md | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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