Open Sohan-Opstree opened 1 month ago
It works for me:
$ cat example.toml
[tool.codespell]
skip = 'requirements.txt,*.csv,CHANGELOG.md'
$
$ cat CHANGELOG.md
re-declared
$
$ codespell
./CHANGELOG.md:1: re-declared ==> redeclared
$
$ codespell --toml example.toml
$
Issue Description:
I have configured a .codespell.toml file to ignore certain files in my project, such as requirements.txt and *.csv. However, despite following the documentation, I'm unable to completely ignore the CHANGELOG.md file.
Steps to Reproduce:
Create a .codespell.toml file with the following configuration:
Set up the pre-commit hook in the project's configuration:
pre-commit hook:
Run pre-commit run --all-files codespell. Expected Behavior: The CHANGELOG.md file should be completely ignored by codespell, as specified in the .codespell.toml configuration file.
Actual Behavior:
The CHANGELOG.md file is not being ignored entirely, leading to errors during the codespell check.