Skip to content

Update codespell version in pre-commit#4938

Merged
hoodmane merged 4 commits intopyodide:mainfrom
lesteve:update-codespell
Jul 16, 2024
Merged

Update codespell version in pre-commit#4938
hoodmane merged 4 commits intopyodide:mainfrom
lesteve:update-codespell

Conversation

@lesteve
Copy link
Contributor

@lesteve lesteve commented Jul 16, 2024

Description

This updates codespell in precommit. This would help for #4935 because precommit.ci is unhappy and I don't manage to make it ignore "COO" for an unkown reason ...

I needed to add an ignore-list because somehow atmost is flagged by pre-commit 2.3.0 as a typo ...

codespell 2.3.0 detected real typos in other files that I fixed.

Checklists

I ticked all of them since this does not seem applicable

  • Add a CHANGELOG entry
  • Add / update tests
  • Add new / update outdated documentation

@@ -0,0 +1,2 @@
atmost
COO
Copy link
Member

Choose a reason for hiding this comment

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

We also have "--ignore-words-list", "ags,aray,asend,ba,classs,crate,falsy,feld,inflight,lits,nd,slowy,te,oint,conveniant" in the .pre-commit-config file, presumably we don't want to have both an inline ignore list and a separate file.

Copy link
Contributor Author

@lesteve lesteve Jul 16, 2024

Choose a reason for hiding this comment

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

Ah I missed it somehow, so many different ways to configure these things ...

I pushed a commit moving the config to pyproject.toml. I guess one small advantage is that you can run codespell directly if you want and it will use the config rather than having to run precommit run codespell --files <file>. I can definitely revert it if you prefer to have everything in precommit config.

Copy link
Member

Choose a reason for hiding this comment

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

so many different ways to configure these things

Seriously.

moving the config to pyproject.toml

Sounds good to me, I don't have a strong preference as long as we keep it consistent.

Copy link
Member

@hoodmane hoodmane left a comment

Choose a reason for hiding this comment

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

Thanks!

[tool.codespell]
ignore-words = 'tools/codespell_ignore_words.txt'
skip = 'benchmark/benchmarks/pystone_benchmarks/pystone.py,src/js/package-lock.json'
skip = 'benchmark/benchmarks/pystone_benchmarks/pystone.py,src/js/package-lock.json,tools/codespell_ignore_words.txt'
Copy link
Member

Choose a reason for hiding this comment

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

nice

@@ -0,0 +1,2 @@
atmost
COO
Copy link
Member

Choose a reason for hiding this comment

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

so many different ways to configure these things

Seriously.

moving the config to pyproject.toml

Sounds good to me, I don't have a strong preference as long as we keep it consistent.

@hoodmane hoodmane merged commit 4cfc0ff into pyodide:main Jul 16, 2024
@lesteve lesteve deleted the update-codespell branch July 16, 2024 12:03
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