Created
April 2, 2013 22:38
-
-
Save robhudson/5296851 to your computer and use it in GitHub Desktop.
.git/hooks/pre-commit and flake8
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
| #!/usr/bin/env python | |
| import sys | |
| from flake8.run import git_hook | |
| ignore = [ | |
| 'E121', | |
| 'E123', | |
| 'E124', | |
| 'E125', | |
| 'E126', | |
| 'E127', | |
| 'E128', | |
| ] | |
| if __name__ == '__main__': | |
| sys.exit(git_hook(strict=True, lazy=True, ignore=ignore)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment