From e230cf6b1fb49d03158ccf3f9db7601ed863bf95 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 16 Mar 2024 22:29:07 +0100 Subject: [PATCH] Add suggestion for pre-commit hook running mypy, flake8, pylint. --- git_hooks/pre-commit | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 git_hooks/pre-commit 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 -- 2.30.2