Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kvnn/3176838 to your computer and use it in GitHub Desktop.
Save kvnn/3176838 to your computer and use it in GitHub Desktop.
git hook to ensure requirements.txt and pip freeze are synced
# This hasn't been tested. I found it here: http://news.ycombinator.com/item?id=4290203
[hooks]
pretxncommit.pip = bash -c "diff -u requirements.txt <(source env/bin/activate &&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment