home · contact · privacy
Refactor and extend tests.
[plomtask] / scripts / pre-commit
1 #!/bin/sh
2 set -e
3 # for dir in $(echo '.' 'plomtask' 'tests'); do
4 for dir in $(echo 'tests'); do
5     echo "Running mypy on ${dir}/ …."
6     python3 -m mypy --strict ${dir}/*.py
7     echo "Running flake8 on ${dir}/ …"
8     python3 -m flake8 ${dir}/*.py
9     echo "Running pylint on ${dir}/ …"
10     python3 -m pylint ${dir}/*.py
11 done
12 echo "Running unittest on tests/."
13 python3 -m unittest tests/*.py
14 exit 0