Skip to content

Add codespell: config + workflow to detect new typos. Get some typos fixed - #9234

Merged
auvipy merged 7 commits into
encode:masterfrom
yarikoptic:enh-codespell
Feb 28, 2024
Merged

auvipy merged 7 commits into
encode:masterfrom
yarikoptic:enh-codespell

Conversation

@yarikoptic

Copy link
Copy Markdown
Contributor

Description

https://github.com/codespell-project/codespell is great at fixing known typos. I am proposing codespell to any project I get to look "inside" at

@cclauss

cclauss commented Jan 24, 2024 •

Copy link
Copy Markdown
Contributor

Please rebase because pre-commit should be fixed now.

Also,

Comment thread .github/workflows/codespell.yml Resolved
Comment thread docs/topics/internationalization.md Resolved
@yarikoptic
yarikoptic force-pushed the enh-codespell branch 3 times, most recently from 0b28a9f to 726d43d Compare January 25, 2024 02:30
Comment thread .codespellrc Outdated
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
[codespell]
skip = .git,*.svg,*.css,*.min.*,*-min.js,.codespellrc,locale,static,kickstarter-announcement.md
check-hidden = true

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.

check-hidden is not a good idea on a GitHub repo because it will spellcheck all our dependencies and a bunch of other files that we don't have the desire or ability to modify. If we remove that option then we can simplify to:
codespell --ignore-words-list=fo,malcom,ser --skip="*/kickstarter-announcement.md,*.js,*.map,*.po"

Also, this project already has a setup.cfg file so perhaps it would be better to put this configuration there.
This has the added advantage that it will be automatically migrated to pyproject.toml by tools like ini2toml.

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.

@yarikoptic
yarikoptic marked this pull request as draft January 26, 2024 14:07
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w -i 3 -C 2 ./docs/community/release-notes.md",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^

@cclauss cclauss 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.

Nice!!

@cclauss

cclauss commented Jan 26, 2024

Copy link
Copy Markdown
Contributor

Is this still a Draft or Ready to be reviewed?

@yarikoptic
yarikoptic marked this pull request as ready for review January 26, 2024 16:48
@yarikoptic

Copy link
Copy Markdown
Contributor Author

sorry, forgot to bring it back. Ready now

@auvipy
auvipy merged commit fb03dd9 into encode:master Feb 28, 2024
@auvipy

auvipy commented Feb 28, 2024

Copy link
Copy Markdown
Collaborator

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants