Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created March 12, 2013 19:57
Show Gist options
  • Save andymckay/5146434 to your computer and use it in GitHub Desktop.
Save andymckay/5146434 to your computer and use it in GitHub Desktop.
for file in `git diff-tree --no-commit-id --name-only -r HEAD | sort | uniq`
do
if [ ${file: -3} == ".py" ]
then
flake8 --ignore=E121,E123,E124,E125,E126,E127,E128 $file
fi
if [ ${file: -3} == ".js" ]
then
jshint $file
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment