diff --git a/.git_hooks/pre-commit b/.git_hooks/pre-commit new file mode 100755 index 00000000..6928f8a5 --- /dev/null +++ b/.git_hooks/pre-commit @@ -0,0 +1,2 @@ +black --line-length=100 $(git diff --cached --name-only --diff-filter=ACM -- '***.py') +git add $(git diff --cached --name-only --diff-filter=ACM -- '***.py')