From 25d5bf6c40ee12ad499c2044393e69c6a864d348 Mon Sep 17 00:00:00 2001 From: appel_c Date: Wed, 27 Sep 2023 11:46:22 +0200 Subject: [PATCH] fix: add git_hooks precommit to repo --- .git_hooks/pre-commit | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .git_hooks/pre-commit diff --git a/.git_hooks/pre-commit b/.git_hooks/pre-commit new file mode 100644 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)