An exploration of re-writing example git hooks in Python
Run .setup.sh
from the root of an initialized git repo with the git-hooks
directory copied to the root
pre-commit.sample re-written in Python
Test Cases
- set
git config --bool hooks.allownonascii false
, add a non-ascii file,hы.txt
and notice error message - add white spaces and extra lines to end of files and notice error messages