@@ -666,21 +666,23 @@ than a list of "valid" words. To use:
666666 rev: "v2.4.1"
667667 hooks:
668668 - id: codespell
669- args: ["-L", "sur,nd"]
669+ additional_dependencies:
670+ - tomli; python_version<'3.11'
670671` ` `
671672
672673You can list allowed spellings in a comma separated string passed to `-L` (or
673674` --ignore-words-list` - usually it is better to use long options when you are
674- not typing things live). The example above will allow "Big Sur" and "ND". You
675- can instead use a comma separated list in `setup.cfg` or `.codespellrc` :
675+ not typing things live). The example below will allow "Big Sur" and "ND". Here's
676+ an example of `pyproject.toml` configuration :
676677
677678` ` ` ini
678- [codespell]
679- ignore-words-list = sur,nd
679+ [tool. codespell]
680+ ignore-words-list = [" sur", "nd"]
680681` ` `
681682
682- If you add the `toml` extra (or use Python 3.11+), you can instead put a
683- ` tool.codespell` section in your `pyproject.toml`.
683+ You can also add the `-w` flag to have it automatically correct errors - this is
684+ very helpful to quickly make corrections if you have a lot of them when first
685+ adding the check. `uvx codespell -w` will quickly correct all non-hidden files.
684686
685687You can also use a local pygrep check to eliminate common capitalization errors,
686688such as the one below :
@@ -695,10 +697,6 @@ such as the one below:
695697 exclude: .pre-commit-config.yaml
696698` ` `
697699
698- You can also add the `-w` flag to have it automatically correct errors - this is
699- very helpful to quickly make corrections if you have a lot of them when first
700- adding the check.
701-
702700# # PyGrep hooks
703701
704702{% rr PC170 %} This is a repository with a
0 commit comments