Add Black format check to git hooks

This commit is contained in:
Deimos
2018-08-13 14:32:25 -06:00
parent 4d8998d8f9
commit 1a2b5a8593
2 changed files with 3 additions and 1 deletions

View File

@@ -4,4 +4,5 @@
vagrant ssh -c ". activate \
&& echo 'Checking mypy type annotations...' && mypy . \
&& echo 'Checking if Black would reformat any code...' && black --check . \
&& echo -n 'Running tests: ' && pytest -q"

View File

@@ -4,5 +4,6 @@
vagrant ssh -c ". activate \
&& echo 'Checking mypy type annotations...' && mypy . \
&& echo 'Checking if Black would reformat any code...' && black --check . \
&& echo -n 'Running tests: ' && pytest -q \
&& echo 'Checking code style (takes a while)...' && pylama"
&& echo 'Checking code style fully (takes a while)...' && pylama"