Pre-commit is a python package that helps prevent wrong code getting into a commit. It automates the checking such that small bugs are caught early. It can also be customised!
The idea of pre-commit is explained with this graphic.
Feedback? See an issue? Feel free to mention it here.
If you want to be kept up to date, consider getting the newsletter.