Python pre-commit hook
This piece of code will help you keep your Python projects save. It checks if you haven't forgotten to update requirements.txt, if runs pyflakes on all the .py files in the repo and finally, searches for misplaced calls to set_trace().
https://gist.github.com/3849310
If you're using git, you still can force commit with the --no-verify flag.
Written by Milan Cermak
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#