Add a command to fix import order

We check import order as part of our automated tests. But fixing them
means:
- manually editing them and rechecking
- remembering the parameters to `isort`
- looking up the `isort` command from the last time you ran it

Putting it in the Makefile should make life a bit easier.
This commit is contained in:
Chris Hill-Scott
2020-01-13 10:26:11 +00:00
parent 47ec4912db
commit 0fc1ae63e9

View File

@@ -96,6 +96,10 @@ upload-static:
test: ## Run tests
./scripts/run_tests.sh
.PHONY: fix-imports
fix-imports:
isort -rc ./app ./tests
.PHONY: freeze-requirements
freeze-requirements:
rm -rf venv-freeze