From: Christian Heller Date: Sat, 16 Mar 2024 21:29:07 +0000 (+0100) Subject: Add suggestion for pre-commit hook running mypy, flake8, pylint. X-Git-Url: https://plomlompom.com/repos/ledger?a=commitdiff_plain;h=e230cf6b1fb49d03158ccf3f9db7601ed863bf95;p=plomtask Add suggestion for pre-commit hook running mypy, flake8, pylint. --- diff --git a/git_hooks/pre-commit b/git_hooks/pre-commit new file mode 100755 index 0000000..a053262 --- /dev/null +++ b/git_hooks/pre-commit @@ -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