12 lines
304 B
Plaintext
12 lines
304 B
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# 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; }
|
||
|
|
||
|
# Running tests
|
||
|
printf "pytest....."
|
||
|
make test > /dev/null 2>&1 && printf "OK!\n" || { printf "Fail." && exit 1; }
|