Skip to content

fix misspellings found by codespell - #3481

Merged
Pierre-Sassoulas merged 4 commits into
pylint-dev:mainfrom
grayjk:codespell
Nov 21, 2026
Merged

Pierre-Sassoulas merged 4 commits into
pylint-dev:mainfrom
grayjk:codespell

Conversation

@grayjk

@grayjk grayjk commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Type of Changes

Type
✓ 🔨 Refactoring

Description

Fix common misspellings using codespell:

codespell `git ls-tree -r --name-only HEAD`

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?

@codspeed

codspeed Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

Caution

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.

Learn more about sharding benchmarks

✅ 3 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing grayjk:codespell (83ea6ac) with main (16bfe0a)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.45%. Comparing base (e39b499) to head (83ea6ac).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
astroid/nodes/as_string.py 90.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           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           
Flag Coverage Δ
linux 91.11% <90.90%> (+<0.01%) ⬆️
pypy 91.45% <90.90%> (+<0.01%) ⬆️
windows 91.29% <90.90%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
astroid/_ast.py 100.00% <ø> (ø)
astroid/brain/brain_builtin_inference.py 91.96% <ø> (ø)
astroid/brain/brain_dataclasses.py 91.88% <ø> (ø)
astroid/builder.py 93.61% <ø> (ø)
astroid/nodes/node_classes.py 92.34% <ø> (ø)
astroid/nodes/scoped_nodes/scoped_nodes.py 91.04% <100.00%> (ø)
astroid/nodes/as_string.py 94.67% <90.00%> (ø)

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, could you add that in pre-commit taking example on pylint ?

@Pierre-Sassoulas Pierre-Sassoulas added Maintenance Discussion or action around maintaining astroid or the dev workflow Skip news 🔇 This change does not require a changelog entry labels Nov 20, 2026
@grayjk

grayjk commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

pre-commit updated

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding the hook

Comment thread pyproject.toml Outdated
lint.unfixable = [ "RUF001" ]

[tool.codespell]
ignore-words-list = "Ned,Ream,astroid,nin"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we should have a dict shared between pylint spelling check and codespell.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for a future PR? I didn't see where the pylint spell checker was used on astroid

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to custom_dict.txt like in pylint

Comment thread tests/test_nodes.py Outdated
def test_slice_and_subscripts(self) -> None:
code = """a[:1] = bord[2:]
a[:1] = bord[2:]
code = """a[:1] = board[2:]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should translate instead imo

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed bord to edge

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you !

@Pierre-Sassoulas
Pierre-Sassoulas merged commit 4bd783b into pylint-dev:main Nov 21, 2026
35 of 36 checks passed
@grayjk
grayjk deleted the codespell branch November 23, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance Discussion or action around maintaining astroid or the dev workflow Skip news 🔇 This change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants