Skip to content

Instantly share code, notes, and snippets.

@amjith
Created August 16, 2017 05:36
Show Gist options
  • Save amjith/cfcbaea0acc5a63daba8c6e3d03733cb to your computer and use it in GitHub Desktop.
Save amjith/cfcbaea0acc5a63daba8c6e3d03733cb to your computer and use it in GitHub Desktop.
precommit hook
#!/bin/sh
pep8radius master --in-place
git diff --cached --name-only | egrep '\.py$'| xargs -l git add
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment