Created
April 24, 2018 09:01
-
-
Save edvardm/5b92602352c09fde41fb399e6f17c12b to your computer and use it in GitHub Desktop.
Simple pre-commit hook for checking python files with pycodestyle before committing
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 | |
set -u | |
FILES=$(git diff --cached --name-only --diff-filter=ACM) | |
pycodestyle ${FILES} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment