This file contains 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/bash | |
PEP8=$(which pep8) | |
PEP8IGNORE=E123,E124,E126,E127,E128 | |
if [ -z $PEP8 ]; then | |
echo "No pep8 in your path. Skipping Python checks" | |
else | |
for file in $(find "$@" -name '*.py'); do | |
OUTPUT=$(mktemp) |
This file contains 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/bash | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then |