12 lines
304 B
Bash
Executable File
12 lines
304 B
Bash
Executable File
#!/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; }
|