Open jamesbraza opened 1 year ago
The README attempts to document that using examples:
[codespell]
skip = *.po,*.ts,./src/3rdParty,./src/Test
count =
quiet-level = 3
As you can see:
--skip SKIP
→ skip = SKIP
--count
→ count =
--quiet-level QUIET_LEVEL
→ quiet-level = QUIET_LEVEL
Yeah I did see that in the README
actually, and understand the mapping between CLI names and config names.
However, it's not clear how to use check-filenames
/check-hidden
. Do we just need their presence, or should we set to True
?
[codespell]
check-filenames = True
check-filenames =
--count
→ count =
Ah I see, that clears me up... and thank you! Please feel free to close this issue.
One docs aspect I like in other Python tools is they have sample complete configs:
pylint
documents all at once: https://github.com/PyCQA/pylint/blob/main/examples/pylintrcflake8
and isort
document on a case-by-case basis:
If codespell
had one of these, I think it'd be helpful
Yes, there is room for improvement.
In this case, knowing the solution helped me understand the example in the documentation, instead of the other way round.
If I have the following
.codespellrc
forcodespell==2.2.2
:And I run the below:
So this seems to be wrong. From a GitHub advanced search, I see this:
However, this is not clear to me, would the checks be enabled or disabled here?
Can you please document how to put
check-filenames
andcheck-hidden
into theREADME
? Thank you in advance