browniebroke.com

Using Codespell to check for typos

May 07, 2022
Edit on Github

Today, I stumbled upon Codespell, a tool to check for spelling mistakes in your code. I found out about it by looking at the PyScript repo, which they define in their pre-commit config. Since most of my repos are set up with pre-commit.ci already, I went ahead and added the config, which just a couple of lines:

repos:
  - repo: https://github.com/codespell-project/codespell    rev: v2.1.0    hooks:      - id: codespell

It didn’t raise a lot of issues, but it did catch a couple of typos here and there.

Liked it? Please share it!

© 2024, Built with Gatsby