-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug? ignore-words-list
seems to have no effect
#2375
Comments
Like so:
Which admittedly doesn't match our docs: Based on: codespell/codespell_lib/data/dictionary.txt Line 20494 in 978a223
|
That's it - fixes the issue, but yeah the way i read the docs was that I should try to match case... Perhaps we need a docfix? |
codespell/codespell_lib/_codespell.py Lines 456 to 462 in 1d9dee3
I think the issue may be that MSDOS is one of the few entries which is upper case in the dictionary, hence flagging this issue. |
Looks like there is a case issue:
Not excluded
excluded successfully. |
Yeah our comparison to match the dictionary from the ignore list is happening with different case requirements to what we claim in the docs. |
FWIW just ran into this issue and was about to complain as well -- would be great to have it fixed, as to conform to the promise of being case sensitive. My use case:
so I would dislike completely avoiding fixing |
Additionally, decapitalise words due to codespell-project/codespell#2375.
I am facing a similar issue mentioned here. When using [tool.codespell]
quiet-level = 0
skip = "poetry.lock"
ignore-words-list = "OT" Any suggestions? |
I some times add those into |
@iamibi As already explained: ignore-words-list = "ot" |
that would also skip lower case |
I'm having a similar problem when checking Zig source files. |
@perillo What's your question ? |
Looking at the comments, I assumed that using lowercase for ignore words was a temporary fix. However https://github.com/codespell-project/codespell/#ignoring-words documents that this is the expected behavior. Thanks. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
Use full lower case to ignore the word 'SOOP' as mentioned in codespell-project/codespell#2375
* add roadmap update: standardization * update roadmap: all remaining sections * update contributors * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add SOOP to codespell * add workflow fig * separate out acknowledgement * change roadmap to smallcase * add exclude word to codespell * move -L to the front * ci: Update SOOP ignore using lowercase Use full lower case to ignore the word 'SOOP' as mentioned in codespell-project/codespell#2375 * update copyright to 2024 * fix typos, small tweaks * add sponsor logos * fix image links/size for more information, see https://pre-commit.ci * make logos smaller --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Don Setiawan <[email protected]>
Am I doing something wrong? How can I get it to stop flagging
MSDOS
as an error?ignore-words-list
seems to have no effectMy config:
The text was updated successfully, but these errors were encountered: