Skip to content

Instantly share code, notes, and snippets.

@millerdev millerdev/git-flake8
Last active Nov 8, 2017

Embed
What would you like to do?
Run fake8 on lines changed in current branch
#! /bin/bash
# Usage: git flake8 [refname]
BRANCH=${1:-origin/master}
CURRENT=$(git rev-parse --abbrev-ref HEAD)
echo "$BRANCH...$CURRENT"
git diff $BRANCH...$CURRENT | flake8 --diff 1>&2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.