hooks: update style checkers in hooks

Run `isort` and `black` in the hooks. Run them with the `--check` option
to not modify files which could be committed by accident.

Note that the changes in `.gitignore` are not needed as `.log` is
already excluded in the Django's section. We add those file to this
section in case `.log` is removed in the future.
This commit is contained in:
Ana María Martínez Gómez
2020-07-29 08:50:07 +02:00
parent 863df5ad1f
commit 70dda980e8
3 changed files with 55 additions and 16 deletions

3
.gitignore vendored
View File

@@ -111,5 +111,6 @@ venv.bak/
!rules/lib
# hooks output
style-checker-output.log
isort-output.log
black-output.log
rule-linter-output.log