Added black formatter to pre-commit hook

This commit is contained in:
Jef Roosens 2020-09-01 09:17:09 +02:00
parent 6f2d9d1dde
commit 7a7bd6fed4
14 changed files with 127 additions and 70 deletions

View file

@ -3,8 +3,8 @@
# This hooks runs tests and checks if the linter doesn't hate you
# Linting
printf "flake8....."
make lint > /dev/null 2>&1 && printf "OK!\n" || { printf "Fail." && exit 1; }
printf "black......"
make format > /dev/null 2>&1 && printf "OK!\n" || { printf "Fail." && exit 1; }
# Running tests
printf "pytest....."