Skip to content

Instantly share code, notes, and snippets.

View jishnu7's full-sized avatar
🤷‍♂️

Jishnu Mohan jishnu7

🤷‍♂️
View GitHub Profile
@jishnu7
jishnu7 / pre-commit.sh
Created September 24, 2015 10:44
pre-commit hook for pep8
#!/bin/sh
FILES=$(git diff --cached --name-status | grep -v ^D | awk '$1 $2 { print $2}' | grep -e .py$)
if [ -n "$FILES" ]; then
pep8 -r $FILES
fi