added pre-commit hook

This commit is contained in:
wakonig_k 2022-09-06 16:44:02 +02:00
parent ac234edd56
commit 000bdfda12

2
.git_hooks/pre-commit Executable file
View File

@ -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)