home · contact · privacy
Add suggestion for pre-commit hook running mypy, flake8, pylint.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 16 Mar 2024 21:29:07 +0000 (22:29 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 16 Mar 2024 21:29:07 +0000 (22:29 +0100)
git_hooks/pre-commit [new file with mode: 0755]

diff --git a/git_hooks/pre-commit b/git_hooks/pre-commit
new file mode 100755 (executable)
index 0000000..a053262
--- /dev/null
@@ -0,0 +1,6 @@
+#!/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
+exit 0