motorscript.com

This git pre-commit hook checks your Python code quality and prevents bad code from checking it into your git repo.

Install this hook directly using the following commands:

pip install flake8
wget https://gist.github.com/xtranophilist/eca5acae1a33b0baad33/raw/pre-commit.py -O .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit

Content of the hook: