Behind the Commit · Episode 6 · 30 March 2026 · 16 min

Maintaining 80 OSS Projects: Anthony Sottile on pre-commit and Developer Tooling

Mia Bajić talks with Anthony Sottile about pre-commit, developer tooling and maintaining around 80 open source projects.

Anthony Sottile created pre-commit, is the primary maintainer of flake8, a core contributor to pytest and a GitHub Star, and streams live coding on Twitch as "anthonywritescode". They discuss the all-repos tool, the origin of pre-commit, bugs found in npm and Git, open source funding, the psychological side of maintenance, and how to start contributing to open source.

About the guest

Anthony Sottile

Creator of pre-commit, primary maintainer of flake8, core contributor to pytest, maintainer of around 80 open source projects, GitHub Star, and live coding streamer as "anthonywritescode".

Chapters

Links & Resources

Full Transcript
[00:00]

You maintain around 80 open source projects. How do you manage it all? >> Not very well. Uh the main way that I try and approach it is I wrote another tool. So I have one more repo to

[00:12]

maintain. Uh the tool is called all >> And you're also the creator of pre-commit. Right. >> That's me. >> How did you get started?

[00:21]

>> Ah this is actually a fun story. It's 30,000line bash script that had so many bugs. Uh so many problems. Hi everyone. Have you ever wondered how does someone maintain 80 open source projects across

[00:33]

Python ecosystem? In this episode I talked to Anthony Sottile. Anthony is a creator of pre-commit and bey primary maintainer of flake 8 a core contributor to piest and he maintains around 80 open

[00:45]

source projects across Python ecosystem. He is also a popular Twitch streamer under the name Anthony writes code where he focuses on live programming and open source development.

[00:56]

You maintain around 80 open source projects. How do you manage it all? >> Not very well. Uh so I like to approach maintaining my own personal libraries as a bunch of micro

[01:11]

repos. Uh I found working with monor repos in the past to be convenient in some ways, but you need a lot more tooling to make it work. That said, I also need special tooling to

[01:21]

make my maintenance work. Uh the main way that I try and approach it is I wrote another tool. So I have one more repo to maintain. Uh the tool is called all repos. The idea behind it is it

[01:34]

basically clones everything that you have and then gives you distributed refactoring tools, searching tools and other things that make it easy to figure out all the code you have and all the

[01:44]

things you need to update. >> And how did you come up with an idea to have one repo to rule them all? Did you one day just wake up and say okay this is what I'm going to do I don't want to

[01:53]

have so many smaller repositories or did you have for example some other solution in the past that you migrated from? >> Yeah so this actually came or the idea came about from when I was working at

[02:04]

Yelp. Uh Yelp also started in one monolithic repository that evolved over a decade and at some point realized that that wasn't going to scale with the number of developers around. So they've

[02:18]

[snorts] went into microservices and micro libraries and the number of exploded and I was working on uh a team called webcore. We did developer tooling and other stuff and we wanted to help

[02:32]

people more easily upgrade dependencies and manage you know what all code do we have and how do we search it and uh act on it. So the all repos tool, the public one is sort of a re-imagination of a

[02:46]

private tool also by the same name at >> And if I for example maintain 20 different projects, what are my options? Can I just fork your almighty repo or are there any other tools that you would

[02:58]

also recommend? >> So there's a few other tools in this space. Um I think there's like a shell script that some people use to just clone everything. Um, but the cool thing

[03:07]

about all repos is you just pip install it and set up a small configuration file and you're basically ready to go. There's even a readon mode where you don't need to do any special credential

[03:17]

management and uh yeah, works great for >> And does it work only with Python projects or with all languages? >> Works with all languages. So I use it to also manage the other programming

[03:29]

languages that I write in as well. >> And you're also the creator of pre-comit, right? >> That's me. How did you get started? >> Ah, this is actually a fun story. So,

[03:40]

the first version of pre-commit was a thousandline Python script in my group projects in college because I wanted to enforce standards on my group partner mates and they weren't playing ball. So,

[03:56]

we automated it. Uh, originally it did some very basic things for C++, surprisingly not Python. Uh, and that's kind of how it got started. The more mature version that you see today

[04:11]

is actually not very different than it was when the project originated in 2014, but the goal for the 2014 version was to make it work for Yelp. uh Yelp had Python, SCSS, and JavaScript developers

[04:27]

at the time. And we wanted a way to eliminate a 30,000line bash script that had so many bugs uh so many problems with a more easy to manage Python tool uh that installed in those various

[04:42]

programming languages so that people didn't have to worry about setting up their development environments. So you mentioned various programming languages. Um as most of us using pre-commit know that

[04:52]

pre-commit supports many different languages. What were the the hardest technical challenges you faced when you were developing it? Was it supporting many different languages or something

[05:03]

>> Yes, it's definitely the languages. So when PMIT started out it was just Python, Ruby and JavaScript and no other major tools. Uh, but now it supports I think 13 different programming languages

[05:17]

and by far keeping up with all of the different ecosystems is the hardest part. I think some ecosystems are easier than others. Like Python is actually pretty easy. You set up a virtual

[05:27]

environment, you pip install. Uh, Ruby also fairly straightforward. You know, you have your gem, you gem install. uh Go has gone through at least three different iterations of how they want to

[05:39]

install things and tools and libraries and how to separate those apart. I think Go is probably the most complicated or the most complicated to keep up with. >> Uh other languages have various ideas

[05:52]

about how installation should work. I think R is probably the weirdest one, but that one was community contributed, so I didn't have to work on that one that much. And have you ever found any

[06:04]

surprising or interesting bug when building it? Because you mentioned different languages and different languages work in different ways. So what was something that surprised you

[06:12]

the most? >> I have found so many bugs in so many programming languages from working on pre-commit and tools as well. Uh I think I've reported at least four different

[06:22]

bugs in git. Uh some of them Windows specific, some of them on particular versions of Mac OS. uh all sorts of strange bugs. I think probably the most surprising one was a breakage in npm. Uh

[06:41]

somehow it got through several layers of QA and released to the public and then the first people to notice were somehow pre-commit users because >> by default it installs the latest node

[06:52]

and the latest npm if you don't have it available. And so people were flooding my issue tracker with why why doesn't mpm work and uh it was a fun one to biseect find the actual bug in mpm and

[07:04]

then ultimately get it fixed. >> You're also recognized as a GitHub star for open source contributions. What are your thoughts about funding and open source? [laughter]

[07:14]

>> This is not an official GitHub response here, but um I'm unfortunately a little pessimistic about open source funding. I think that there, you know, there's lots of open source software and many

[07:27]

corporations derive millions or billions in value from freely available software and some of it gets kicked back to maintainers. But I find that most GitHub sponsorship is peer-to-peer. It's other

[07:40]

developers showing a small token of appreciation to other people, which absolutely I I adore that. I love that part of GitHub sponsors. Uh, but I would love to see larger corporations step up

[07:52]

and put more money where they're driving value from. >> So, you think that the most sustainable model would be basically the corporations uh funding other nonprofits

[08:03]

standing behind those projects that would be then able to pay maintainers so they don't have to work in their free time and [snorts] weekends. >> That would be awesome. Um, that said,

[08:12]

like the company I work for is Century, and Sentry goes really far in trying to fund open source maintainers. Uh, the there's some I forget the name of their uh campaign, but they're trying to get

[08:25]

corporations on board in spending a significant chunk of money each year. And I think Centuries is over 100,000 per year, which is they're trying to make a difference, basically a software

[08:37]

salary to to make that work. So you maintain lots of different projects and part of it is also working with people >> and uh in one uh in one conversation one you once you said sometimes you just

[08:51]

have to close the issue move on and try not to take it to heart >> unfortunately I'm not very good about that. Uh I think there's a psychological >> you get angry messages with people

[09:02]

because you closed their issue or you didn't want to merge something >> all the time. Uh, I think open source is also a really difficult psychological problem because it's easy to get one,

[09:15]

it's easy to get heated, but two, you're not having a face tof face conversation with someone. You're typing in a text box on >> everyone is anonymous.

[09:22]

>> Yeah. There's you [laughter] >> but other people creating issues. >> Yes. Random random user 123. You have no idea who they are. You don't know their background. You don't know what they're

[09:32]

going through right now. Like maybe they're going through a breakup. Maybe they're having a hard time at work. Maybe they're just frustrated because they've been trying to get this thing

[09:39]

working for 6 hours and this tool just isn't doing what I expect it to. And you know, I I'm I'm not [laughter] guiltless in this as well. Like there's certainly some aspect of, you know, I'm busy with

[09:52]

with day-to-day life. You know, sometimes you can be short. Sometimes you just need to close the issue and walk away from the computer. And uh yeah, you know, open source is not

[10:02]

always sunshine and rainbows or fun. Yes. Honestly, h that's tough because I think if I went back in time, I would probably tell myself, hey, maybe spend more free time

[10:15]

not maintaining more projects so that you can have a more balanced life. And is this something that came over time that you don't take those comments personally or this is something that was

[10:27]

always there because lots of people feel very demotivated that they do something their free time to invest their heart and energy and everything and then someone comes a random person on the

[10:37]

internet and says hey this doesn't work fix it and then people feel very demotivated they feel sad about it >> I think so. Yeah. I think for me like the other hard part is open source to me

[10:49]

transitioned from being something where it was like oh I'm going to build this cool thing for me because I want to see it happen. It's going to make my life easier. I'll put it out there. People

[10:59]

like it >> with others. People will like it. >> Maybe someone will like it. I pre-commit even like I I can't fathom how many people use it today. Cuz originally it

[11:07]

was like I have this problem. I'm gonna solve it for me, the company I work for, and it's gonna do what I want it to do. And at some point, that shifted from me building things for myself to instead

[11:21]

spending time supporting other people. And again, back to open source funding, supporting other people for free and getting very little kickback. >> Speaking of support, you said once that

[11:32]

one of your favorite parts of open source is that if you offer help, people are usually receptive. Uh, what advice would you give to someone who would like to start contributing to open source?

[11:42]

How do how do I find a project that's suitable for me? >> I love this question. This is one of my favorite things to answer on my YouTube and stream. I think I it's the most

[11:51]

common question I get as well. What I would recommend for new projects, if you want to get into open source, the first place to look is tools that you use and love. And I'm sure even the tools you

[12:03]

use and love once in a while you'll find something where you're like that's not quite how I would want it to work or this thing could be better or maybe you find a typo in a help message. Like it

[12:13]

could be something extremely small or extremely large. U start with the projects that you know and love though. And the other thing you can look for is in those projects, they will often have

[12:24]

issues that are tagged like easy for newcomers or something that can help you get started and figure out contributing and jumping in to fix something or it could be something as simple as triaging

[12:36]

issues. I know the CPython project has official triagers and uh we had a keynote earlier that was very helpful in giving that as another opportunity to contribute. And I think you know finding

[12:49]

bugs and seeing whether they still reproduce is a very valuable piece of of uh maintenance that often is underappreciated or or overlooked. >> And apart from being a maintainer,

[12:59]

you're also a famous streamer on Twitch. I don't know that I would say famous, but we got a small community. >> Yes. And how did you start? >> Yeah. So, starting on Twitch was

[13:11]

originally a way for me to set aside time to work on open source. It was I'm going to, you know, start up my computer on a Saturday, set aside four hours of time that I was going to hack on open

[13:23]

source, and I'll turn on a camera and see what happens. And maybe it would be help me document it along the way. Uh, it quickly shifted from that. Uh, it turns out when you stream with a chat

[13:35]

box, you quickly build a community and less and less time on stream is spent actually programming and more of it is just socializing and >> so you accidentally became popular.

[13:46]

>> Yes. Yes. Accidentally. Yeah. Oops, I became Yeah. [laughter] >> And what motivates you still to create uh to live stream because you have your paid work, you also maintain lots of

[13:57]

different projects. So, what motivates you? Do you do it just for fun or are there any other reasons? >> I mean, there's there's there's beer money, but it's mostly just for fun. And

[14:07]

I enjoy the community aspect of it. Uh, basically been able to I don't want to say build up a following, but build up like a group of people that I recognize their names. You know, they hang out in

[14:18]

chat. We, you know, we we bond a little bit in that sort of parasocial way. So, maybe not the best, but uh I I basically do it for the community. I really enjoy that part of it. Uh the other part is

[14:31]

sometimes streaming also gives me other avenues to produce educational teaching content. Uh I frequently get questions where it's something that I know but I haven't written down anywhere. I haven't

[14:43]

expressed somewhere and being able to compartmentalize those and then stick them into a YouTube video where I can reuse that later to explain the same questions cuz turns out you get the same

[14:54]

questions over and over. And has interacting with the community changed the way you design code or think about code for example? I think in some ways there's definitely some aspects where

[15:04]

you're like, "Oh, this is something where, you know, I get feature suggestions all the time from chat, but it's also something where it's like, okay, I know how I would use this tool,

[15:14]

but what about someone who has a different background or a different approach to software development or maybe they're in a different programming language or maybe they're on Windows or

[15:23]

maybe they have, you know, uh, a different type of development environment. How would I approach them being able to use my software as well? That said, I'm usually selfish and I'm

[15:33]

just building it for myself, but sometimes sometimes the thoughts are >> Yeah, because different people have different perspectives which you might not see.

[15:39]

>> Of course. Of course, or agree with, but where can people find you on the internet if they would like to check out the videos you're streaming? Uh, what's the name of your channel?

[15:50]

>> The easiest is to look for Anthony Writes Code. That's me on YouTube and Twitch. And I actually have mostly removed the rest of my social uh platforms. So I'm I'm trying to be

[16:03]

>> YouTube and Twitch. >> Yep. Trying to be feed free right now. And uh so it's it's going well so far. >> Okay. Thank you for coming. >> Yes. Thank you for chatting. appreciate.

Behind the Commit is a podcast hosted by Mia Bajić. All episodes.