Created
July 26, 2016 00:06
-
-
Save tuatara/4c6bb5683c7c0fb86314ebb9677150c9 to your computer and use it in GitHub Desktop.
Lint python files on commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Make executable, and save in .git/hooks | |
# Happily, flake8 will ignore non-python files | |
git diff --cached --name-only --diff-filter=ACM | flake8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment