X-Git-Url: https://plomlompom.com/repos/bar%20baz.html?a=blobdiff_plain;f=scripts%2Fpre-commit;h=19ec8061817e141735a87d04c8da7ef29f7108d7;hb=f8b17d94a1867e7cc01782c9301ccb718de0f9c2;hp=e4493a6f34eb279064d6e49e23ea02039f8f4e06;hpb=3b97ae2a26cbc80983d56ee5d0b4ac5334038467;p=plomtask diff --git a/scripts/pre-commit b/scripts/pre-commit index e4493a6..19ec806 100755 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -8,9 +8,9 @@ for dir in $(echo '.' 'plomtask' 'tests'); do echo "Running pylint on ${dir}/ …" python3 -m pylint ${dir}/*.py done -echo "Running unittest on tests/." +echo "Running unittest-parallel on tests/." set +e -python3 -m unittest tests/*.py +unittest-parallel -t . -s tests/ -p '*.py' rm test_db:*.* set -e exit 0