logo
episode-header-image
Oct 2024
1h 10m

#482: Pre-commit Hooks for Python Devs

MICHAEL KENNEDY
About this episode
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
Up next
Aug 22
#517: Agentic Al Programming with Python
Agentic AI programming is what happens when coding assistants stop acting like autocomplete and start collaborating on real work. In this episode, we cut through the hype and incentives to define “agentic,” then get hands-on with how tools like Cursor, Claude Code, and LangChain ... Show More
1h 17m
Aug 19
#516: Accelerating Python Data Science at NVIDIA
Python’s data stack is getting a serious GPU turbo boost. In this episode, Ben Zaitlen from NVIDIA joins us to unpack RAPIDS, the open source toolkit that lets pandas, scikit-learn, Spark, Polars, and even NetworkX execute on GPUs. We trace the project’s origin and why NVIDIA bui ... Show More
1h 5m
Aug 11
#515: Durable Python Execution with Temporal
What if your code was crash-proof? That's the value prop for a framework called Temporal. Temporal is a durable execution platform that enables developers to build scalable applications without sacrificing productivity or reliability. The Temporal server executes units of applica ... Show More
1h 10m
Recommended Episodes
Oct 2024
830: GitHub and Code Reviews with Sarah Vessels
Scott and Wes talk with GitHub’s Sarah Vessels about the ins and outs of code reviews, their critical role in collaborative development, and tips for making your reviews more effective. Show Notes 00:00 Welcome to Syntax! 00:59 What is a code review? How to review code effectivel ... Show More
51m 28s
Aug 2023
E28 - libgit2, source code management and edge computing
Edward Thomson is a fantastic software engineer, he’s currently the maintainer of libgit2: a pure C implementation of the git core methods provided as a linkable library with a solid API. libgit2 powers GitHub, GitLab, Azure DevOps and many other products. Ed is also a product ma ... Show More
1h 9m
Mar 2025
Reaching industrial economies of scale (Changelog Interviews #632)
Beyang Liu, the CTO & Co-founder of Sourcegraph is back on the pod. Adam and Bryant go deep on the idea of “industrializing software development” using AI agents, using AI in general, using code generation. So much is happening in and around AI and Sourcegraph continues to innova ... Show More
1h 44m
Aug 2024
80% of professional programmers are unhappy (News)
The latest Stack Overflow Developer Survey has some concerning results, Joeri Sebrechts helps you do plain vanilla web dev, MIT’s “missing semester” course looks pretty amazing, a dive into the fascinating history of CSV & a tool to get request analytics from the nginx access log ... Show More
6m 44s
Nov 2024
ANTHOLOGY — Packages, pledges & protocols (Interview)
The hallway track at All Things Open 2024 — features Carl George, Principal Software Engineer at Red Hat for a discussion on the state of open source enterprise linux and RHEL (Red Hat Enterprise Linux), Max Howell, creator of Homebrew and tea.xyz which offers rewards and recogni ... Show More
1h 45m
Jun 2024
SE Radio 622: Wolf Vollprecht on Python Tooling in Rust
Wolf Vollprecht, the CEO and founder of Prefix.dev, speaks with host Gregory M. Kapfhammer about how to implement Python tools, such as package managers, in the Rust programming language. They discuss the challenges associated with building Python infrastructure tooling in Python ... Show More
55m 10s
Aug 5
911: The Future of Python Notebooks is Here, with Marimo’s Dr. Akshay Agrawal
Reproducibility, Python notebooks, and data science communities: Software developer Akshay Agrawal speaks to Jon Krohn about Marimo, the next-generation computational notebook for Python, how he built and fostered a thriving community around the product, and what makes this noteb ... Show More
58m 20s
Apr 2025
How To Get The Most Out Of Vibe Coding | Startup School
AI can't yet one-shot an entire product—but with the rise of vibe coding, it's getting close. YC's Tom Blomfield has spent the last month building side projects with tools like Claude Code, Windsurf, and Aqua, seeing just how far you can push modern LLMs. From writing full-stack ... Show More
16m 39s
Nov 2024
851: The Future of VS Code and Copilot
Wes and Scott talk with Cassidy Williams and Harald Kirschner about exciting new features in VS Code and GitHub Copilot, including custom instructions, UI/UX improvements, and the future of AI and Copilot within different editors. Show Notes 00:00 Welcome to Syntax! 00:32 Cassidy ... Show More
42m 12s
Jul 28
Revolutionizing Python Notebooks with Marimo
SummaryIn this episode of the Data Engineering Podcast Akshay Agrawal from Marimo discusses the innovative new Python notebook environment, which offers a reactive execution model, full Python integration, and built-in UI elements to enhance the interactive computing experience. ... Show More
51m 56s