Monitor performance issues & errors in your code

pre-commit framework

Episode #282, published Thu, Sep 17, 2020, recorded Tue, Jul 21, 2020

Git hook scripts are useful for identifying simple issues before committing your code. Hooks run on every commit to automatically point out issues in code such as trailing whitespace and debug statements. By pointing these issues out before code review, this allows a code reviewer to focus on the architecture of a change while not wasting time with trivial style nitpicks.

As we created more libraries and projects we recognized that sharing our pre-commit hooks across projects is painful. That's why I'm happy to welcome Anthony Sottile to the show to discuss pre-commit, a framework for managing and maintaining multi-language pre-commit hooks.
Links from the show

Anthony at Twitter: @codewithanthony
pre-commit: pre-commit.com
pre-commit continuous integration: pre-commit.ci
pre-commit hooks: pre-commit.com/hooks.html
pre-commit on GitHub: github.com
shhgit secret discovery project: github.com
babi editor: github.com
Twitch stream: twitch.tv

Anthony on GitHub: github.com
Episode transcripts: talkpython.fm

--- Stay in touch with us ---
Subscribe to us on YouTube: youtube.com
Follow Talk Python on Mastodon: talkpython
Follow Michael on Mastodon: mkennedy

Want to go deeper? Check out our courses

Episode sponsored by
Ads served ethically
Talk Python's Mastodon Michael Kennedy's Mastodon