home · contact · privacy
Re-structure for unittest usage.
[plomtask] / scripts / pre-commit
index a053262bcb0c49ea34392c4b11a779e8fe2b4431..813455cac8cd690224f6b48862b90a56c95bfe1e 100755 (executable)
@@ -1,6 +1,10 @@
 #!/bin/sh
 set -e
-python3 -m mypy task.py
-python3 -m flake8 task.py
-python3 -m pylint --good-names 'do_GET,do_POST' task.py
+python3 -m mypy plomtask/*.py
+python3 -m flake8 plomtask/*.py
+python3 -m pylint plomtask/*.py
+python3 -m mypy tests/*.py
+python3 -m flake8 tests/*.py
+python3 -m pylint tests/*.py
+python3 -m unittest tests/*.py
 exit 0