Repository navigation
fix misspellings found by codespell - #3481
Conversation
Merging this PR will not alter performanceCaution Benchmarks ran in several CI workflows Your benchmarks ran in several CI workflows on this commit, which isn't supported. Move all your benchmark jobs into a single workflow for CodSpeed to work properly.
Comparing Footnotes
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3481 +/- ##
=======================================
Coverage 91.44% 91.45%
=======================================
Files 94 94
Lines 11946 11954 +8
Branches 1975 1975
=======================================
+ Hits 10924 10932 +8
Misses 721 721
Partials 301 301
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Pierre-Sassoulas
left a comment
There was a problem hiding this comment.
Thank you, could you add that in pre-commit taking example on pylint ?
|
pre-commit updated |
Pierre-Sassoulas
left a comment
There was a problem hiding this comment.
Thank you for adding the hook
| lint.unfixable = [ "RUF001" ] | ||
|
|
||
| [tool.codespell] | ||
| ignore-words-list = "Ned,Ream,astroid,nin" |
There was a problem hiding this comment.
I suppose we should have a dict shared between pylint spelling check and codespell.
There was a problem hiding this comment.
for a future PR? I didn't see where the pylint spell checker was used on astroid
There was a problem hiding this comment.
Ha, maybe we don't right now. Take the example of how it's done in pylint-dev/pylint, a nice follow-up would be to add pylint spelling too.
There was a problem hiding this comment.
moved to custom_dict.txt like in pylint
| def test_slice_and_subscripts(self) -> None: | ||
| code = """a[:1] = bord[2:] | ||
| a[:1] = bord[2:] | ||
| code = """a[:1] = board[2:] |
There was a problem hiding this comment.
Possibly it's the french word for border /edge here. Depends if it's historical test by logilab. I see also august and everything/everyone later so probably the case.
There was a problem hiding this comment.
We should translate instead imo
There was a problem hiding this comment.
changed bord to edge
Type of Changes
Description
Fix common misspellings using codespell:
Some of the changes are nitpicky. Some help with readability (e.g. anc -> ancestor).
Would you like codespell added to the tox or pre-commit config?