home · contact · privacy
Slightly improve and re-organize Condition tests.
[plomtask] / scripts / pre-commit
1 #!/bin/sh
2 set -e
3 # for dir in $(echo 'tests'); do
4 for dir in $(echo '.' 'plomtask' '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-parallel on tests/."
13 unittest-parallel -t . -s tests/ -p '*.py'
14 set +e
15 rm test_db:*
16 set -e
17 exit 0