Added black formatter to pre-commit hook
This commit is contained in:
parent
6f2d9d1dde
commit
7a7bd6fed4
14 changed files with 127 additions and 70 deletions
|
|
@ -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....."
|
||||
|
|
|
|||
Reference in a new issue