codespell-project / codespell

check code for common misspellings
GNU General Public License v2.0
1.81k stars 465 forks source link

--ignore-words is not working in pre-commit #3452

Closed ZhiyuanChen closed 1 month ago

ZhiyuanChen commented 1 month ago

I have the following .codespell-whitelist.txt file and pre-commit config

The codespell white list works perfect in Commandline with codespell --ignore-words=.codespell-whitelist.txt

But the pre-commit keeps complaining https://github.com/DLS5-Omics/multimolecule/actions/runs/9500924760/job/26185184049

DimitriPapadopoulos commented 1 month ago
  1. It works for me outside pre-commit. Perhaps the concept of current directory underlying the use of --ignore-words=.codespell-whitelist.txt is not valid in pre-commit.
  2. Please change Ser into ser.
ZhiyuanChen commented 1 month ago
  1. Please change Ser into ser.

It helped!

I some how thought code spell was case sensitive... Thank you !