Learn Python with Talk Python's Python courses

pre-commit framework

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

This episode is carbon neutral.
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 on YouTube (for live streams): youtube.com
Follow Talk Python on Twitter: @talkpython
Follow Michael on Twitter: @mkennedy

Want to go deeper? Check out our courses

Anthony Sottile
Anthony Sottile
Episode sponsored by
Ads served ethically
Become a friend of the show
Stay in the know and get a chance to win our contests.
See our privacy statement about email communications.