X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fpre-commit;h=e4480354be0edab044bc69d5fada5ab840046dfa;hb=3c9bff1fcd9f67baa7a13256a1cf49cad085d54e;hp=e4493a6f34eb279064d6e49e23ea02039f8f4e06;hpb=3b97ae2a26cbc80983d56ee5d0b4ac5334038467;p=plomtask
diff --git a/scripts/pre-commit b/scripts/pre-commit
index e4493a6..e448035 100755
--- a/scripts/pre-commit
+++ b/scripts/pre-commit
@@ -1,5 +1,6 @@
#!/bin/sh
set -e
+# for dir in $(echo 'tests'); do
for dir in $(echo '.' 'plomtask' 'tests'); do
echo "Running mypy on ${dir}/ â¦."
python3 -m mypy --strict ${dir}/*.py
@@ -8,9 +9,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/."
+unittest-parallel -t . -s tests/ -p '*.py'
set +e
-python3 -m unittest tests/*.py
-rm test_db:*.*
+rm test_db:*
set -e
exit 0