DiscoverTalk Python To Me#482: Pre-commit Hooks for Python Devs
#482: Pre-commit Hooks for Python Devs

#482: Pre-commit Hooks for Python Devs

Update: 2024-10-24
Share

Description

Do you struggle to make sure your code is always correct before you check it in? What about your team members' code? That one person who never wants to run the linter? Tired of dealing with tons of conflicts and spurious git changes? You need git pre-commit hooks. We're lucky to have Stefanie Molin on this episode who has done a bunch of writing and teaching of git hooks.



Episode sponsors



Sentry Error Monitoring, Code TALKPYTHON

Bluehost

Talk Python Courses



Links from the show



Stefanie Molin: stefaniemolin.com



Talk Python Blog: talkpython.fm/blog



How to Set Up Pre-Commit Hooks: stefaniemolin.com

Common Pre-Commit Errors and How to Solve Them: stefaniemolin.com

A Behind-the-Scenes Look at How Pre-Commit Works: stefaniemolin.com

Pre-Commit Hook Creation Guide: stefaniemolin.com

(Pre-)Commit to Better Code Workshop: stefaniemolin.com

exif-stripper: stefaniemolin.com

exif-stripper on GitHub: github.com

docstring-validation-using-pre-commit-hook: numpydoc.readthedocs.io

Data Morph: Moving Beyond the Datasaurus Dozen: stefaniemolin.com

Data Morph on GitHub: github.com

Watch this episode on YouTube: youtube.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
Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

#482: Pre-commit Hooks for Python Devs

#482: Pre-commit Hooks for Python Devs

Michael Kennedy (@mkennedy)