Enforce consistency in imports as part of build

This copies the config we use in the admin app, with a few changes
as discussed in the PR [1]. We'll apply these to our other apps.

[1]: https://github.com/alphagov/notifications-api/pull/3175#issuecomment-795530323
This commit is contained in:
Ben Thorner
2021-03-10 13:51:58 +00:00
parent a2cc0df5a7
commit 321b4913ed
3 changed files with 14 additions and 0 deletions

View File

@@ -30,6 +30,9 @@ display_result $? 1 "Requirements check"
flake8 .
display_result $? 1 "Code style check"
isort --check-only ./app ./tests
display_result $? 2 "Import order check"
# run with four concurrent threads
py.test -n4 -v --maxfail=10
display_result $? 2 "Unit tests"