From 000bdfda12ba721261b2e2953a367363a8480083 Mon Sep 17 00:00:00 2001 From: Klaus Wakonig Date: Tue, 6 Sep 2022 16:44:02 +0200 Subject: [PATCH] added pre-commit hook --- .git_hooks/pre-commit | 2 ++ 1 file changed, 2 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..4dde641 --- /dev/null +++ b/.git_hooks/pre-commit @@ -0,0 +1,2 @@ +black --line-length=100 $(git diff --cached --name-only --diff-filter=ACM) +git add $(git diff --cached --name-only --diff-filter=ACM)