This is sample for pre-commit script for check code file when git commit.
Put Git_hooks_template folder under C:\ or ~/ and execute git_template_setup script, it will set your git config global templatedir or just put json_checker, xml_checker, pycodestyle_checker and pre-commit to your project's ".git/hooks".
Remember chmod +x pre-commit on Mac or Linux, but on Windows.