Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
Run fake8 on lines changed in current branch
#! /bin/bash
# Usage: git flake8 [refname]
CURRENT=$(git rev-parse --abbrev-ref HEAD)
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.