Test & Code in Python

157: pre-commit - Anthony Sottile



June 11th, 2021  •  41 mins 40 secs  •  Download (28.7 MB)  •  Link with Timestamp

RSS Feed

pre-commit started as a framework for running linters and code formatters during git actions via git hooks. It's grown and expanded and now supports an extensive list of languages and actions and manual running of actions. But even at it's core, it's great for letting computers nitpick about whitespace and formatting, so that code reviews can focus on architecture and design.

Anthony Sottile discusses pre-commit, for using locally by developers, and pre-commit.ci, which can run actions during merge requests.