12 lines
306 B
Bash
Executable File
12 lines
306 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# This hooks runs tests and checks if the linter doesn't hate you
|
|
|
|
# Linting
|
|
printf "black......"
|
|
make format > /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; }
|