Skip to content

Conversation

@yarikoptic
Copy link
Contributor

More about codespell: https://github.com/codespell-project/codespell .

I personally introduced it to dozens if not hundreds of projects already and so far only positive feedback.

CI workflow has 'permissions' set only to 'read' so also should be safe.

You barely had any typos (well done!) so feel free to ignore/close this PR -- was not much effort.

…agically

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
@mgeier
Copy link
Member

mgeier commented Dec 7, 2024

Thanks for this PR!

I'm a bit torn, though. On the one hand, I like using automation to fix errors, but OTOH I'm worried about the UX regarding false positives.

There is already one false positive that has to be handled, and one case that is arguable (see codespell-project/codespell#3521 and https://github.com/sphinx-doc/sphinx/pull/13113/files#diff-5ac55e1c4199fe776eedaf542c066d6b3ff665c930c565c860e9b4710704a8cd). This leaves just a single uncontested error.

This makes me think that the probability of false positives appearing in the future is quite high. Handling those would probably be annoying for potential contributors.

That's what I like about https://pep8speaks.org/: it makes it easy to ignore suggestions (it doesn't cause CI to fail) and it only makes suggestions for the lines that were actually changed in a given PR. I guess that is not possible with codespell, right?

@yarikoptic
Copy link
Contributor Author

it would be close to that (only check the files modified) if you start using and add codespell to pre-commit which (by default) would make it go only through modified files. Given that overall there is not that many typos , feel welcome to close if feeling like it! no hurt feelings ;) but as for false positives -- the rate is actually surprisingly low and it is relatively easy to deal with them if they come up.

Cheers

@mgeier
Copy link
Member

mgeier commented Feb 5, 2025

I've cherry-picked the actual spelling fixes to #580.

I think the rest is too much procedure for too little predicted gain.

But thanks anyway for your efforts!

add codespell to pre-commit which (by default) would make it go only through modified files.

This doesn't help much in this case, since we basically only have a single file.

@mgeier mgeier closed this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants