mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 00:33:58 -04:00
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:
4
Makefile
4
Makefile
@@ -96,6 +96,10 @@ upload-static:
|
|||||||
test: ## Run tests
|
test: ## Run tests
|
||||||
./scripts/run_tests.sh
|
./scripts/run_tests.sh
|
||||||
|
|
||||||
|
.PHONY: fix-imports
|
||||||
|
fix-imports:
|
||||||
|
isort -rc ./app ./tests
|
||||||
|
|
||||||
.PHONY: freeze-requirements
|
.PHONY: freeze-requirements
|
||||||
freeze-requirements:
|
freeze-requirements:
|
||||||
rm -rf venv-freeze
|
rm -rf venv-freeze
|
||||||
|
|||||||
Reference in New Issue
Block a user