Skip to content

Instantly share code, notes, and snippets.

@awestendorf
Created May 14, 2015 19:38
Show Gist options
  • Save awestendorf/0bacf19a7c2896971ebc to your computer and use it in GitHub Desktop.
Save awestendorf/0bacf19a7c2896971ebc to your computer and use it in GitHub Desktop.
Run flake8 on the changes in your branch
export CUR_BRANCH=$(git name-rev --name-only HEAD) && git diff --name-only $CUR_BRANCH $(git merge-base $CUR_BRANCH master) | grep .py | xargs flake8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment