Skip to content

Instantly share code, notes, and snippets.

@rafaelgotts
Last active September 20, 2016 13:23
Show Gist options
  • Select an option

  • Save rafaelgotts/981864814e2faab1f63902d4cf2a73bf to your computer and use it in GitHub Desktop.

Select an option

Save rafaelgotts/981864814e2faab1f63902d4cf2a73bf to your computer and use it in GitHub Desktop.
Pre-commit examples
# Check pep8 on all changed files
flake8 `git status -s | awk -F' ' '{print $2}'`
if [ ! $? -eq 0 ]; then
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment