$ pip install git-pylint-commit-hook
$ cd my_git_repo/.git/hooks
$ echo '#!/bin/sh
git-pylint-commit-hook
' > pre-commit
chmod 755 my_git_repo/.git/hooks
- Test committing a python script
git commit -m 'Update my_file.py format to comply with PEP8'
// Running pylint on my_file.py (file 1/1).. 9.8/10.00 PASSED
// [master 3296b3d] Update my_file.py format to comply with PEP8
// file changed, 15 insertions(+), 4 deletions(-)