Skip to content

script: bump codespell to 2.2.1, update ignored words and fix spelling - #26095

Merged
maflcko merged 2 commits into
bitcoin:masterfrom
jonatack:2022-09-14-spelling-updates
Sep 20, 2022
Merged

maflcko merged 2 commits into
bitcoin:masterfrom
jonatack:2022-09-14-spelling-updates

Conversation

@jonatack

@jonatack jonatack commented Sep 14, 2022 •

Copy link
Copy Markdown
Member

as well as one in test/lint/lint-locale-dependence.py not seen by the spelling linter.

Can be tested locally by running test/lint/lint-spelling.py on this branch versus on master and by checking the CI linter result.

@DrahtBot DrahtBot added the Docs label Sep 14, 2022
@aureleoules

Copy link
Copy Markdown
Contributor

I opened #25706 recently to avoid PRs like these but it didn't get much attention. What are your thoughts about it?

@jonatack

jonatack commented Sep 14, 2022 •

Copy link
Copy Markdown
Member Author

I opened #25706 recently to avoid PRs like these but it didn't get much attention. What are your thoughts about it?

That pull wouldn't address all of the changes here; I'm not sure it would catch the one here in the linters, and it wouldn't update the ignored words e.g. removing no-longer-needed ones as done here. Also, some of the fixups here aren't from codespell but I bundled them in. Edit: also periodically updating the codespell version.

@brunoerg

Copy link
Copy Markdown
Contributor

Could you please exemplify the changes in test/lint/spelling.ignore-words.txt? (e.g d575413 added desig and now this PR removes it)

@jonatack

jonatack commented Sep 14, 2022 •

Copy link
Copy Markdown
Member Author

Could you please exemplify the changes in test/lint/spelling.ignore-words.txt? (e.g d575413 added desig and now this PR removes it)

  • the code that you mention in your pull no longer uses desig
  • the spelling linter passes without desig

If the linter passes after removing any ignored words, we may as well remove them.

@brunoerg

brunoerg commented Sep 14, 2022 •

Copy link
Copy Markdown
Contributor

If the linter passes after removing any ignored words, we may as well remove them.

That was my doubt, but makes sense, thanks! In the future, if we need them again, we can put it back as well.

@brunoerg brunoerg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK b3b185ada59d11ee8a395554071da1d538e045a9

@maflcko

maflcko commented Sep 15, 2022

Copy link
Copy Markdown
Member

and also fix spelling in test/lint/lint-locale-dependence.py not caught by the
spelling linter and fix up a paragraph we are touching here in test/README.md.
@jonatack
jonatack force-pushed the 2022-09-14-spelling-updates branch from b3b185a to b6a6556 Compare September 15, 2022 11:05
@jonatack jonatack changed the title doc: fix spelling identified by codespell and update ignored words script: bump codespell to 2.2.1, update ignored words and fix spelling Sep 15, 2022
@jonatack

Copy link
Copy Markdown
Member Author

@satsie satsie left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK b6a6556

Was able to reproduce the CI errors with my local install of codespell. After bumping the version to 2.2.1, test/lint/lint-spelling.py ran with no errors.

Ran test/lint/lint-spelling.py on master and saw all the warnings that are fixed in this PR.

Comment thread src/bench/nanobench.h
*
* Each call to run() generates a Result that is stored within the Bench instance. This is mostly for advanced users who want to
* see all the nitty gritty detials.
* see all the nitty gritty details.

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.

this will need to be fixed upstream

@maflcko
maflcko merged commit 71ac70d into bitcoin:master Sep 20, 2022
@jonatack
jonatack deleted the 2022-09-14-spelling-updates branch September 20, 2022 09:45
@bitcoin bitcoin locked and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants