1. Install git-pylint-commit-hook pip install git-pylint-commit-hook 2. Add git pylint to a git repo as a hook cd my_git_repo/.git/hooks echo '#!/bin/sh git-pylint-commit-hook ' > pre-commit 3. Make the script runnable chmod 755 my_git_repo/.git/hooks 4. 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(-)