Skip to content

Add codespell support (config, workflow to detect/not fix) and make it fix some typos #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 11, 2025

Conversation

yarikoptic
Copy link
Contributor

More about codespell: https://github.com/codespell-project/codespell .

I personally introduced it to dozens if not hundreds of projects already and so far only positive feedback.

CI workflow has 'permissions' set only to 'read' so also should be safe.

just a few typos (well done!) so benefit is small overall.

…os automagically

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
@jhughes-mw
Copy link
Member

jhughes-mw commented May 30, 2025

Hello Dr. Yarik! Thanks of looking at the project and finding our typos. We will need to send you a CLA to sign as part of the policy since this is your first submission to the MathWorks github organization. I will reach out by email to handle that. Sorry for the delay.

@nothans
Copy link
Member

nothans commented Jun 6, 2025

Thanks for the contribution. Could you please message me, and I will initiate the CLA procedure? Thank you!

@yarikoptic
Copy link
Contributor Author

Sorry @nothans , but message how? I do not think there is a messaging system on github but I could be wrong.

Copy link
Member

@jhughes-mw jhughes-mw left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

runs-on: ubuntu-latest

steps:
- name: Checkout
Copy link
Member

Choose a reason for hiding this comment

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

More of a question about how the tool works than any feedback: does the tool run statically or send data to a service?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AFAIK just runs statically and nothing is sent AFAIK, I didn't spot any use of requests or urllib library in it,

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
Copy link
Member

Choose a reason for hiding this comment

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

Ubuntu is probably fine, just thinking about smaller distros like alpine.

skip = .git*,.codespellrc
check-hidden = true
# ignore-regex =
ignore-words-list = ans
Copy link
Member

Choose a reason for hiding this comment

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

really surprised this is the only ignore word 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the tool is quite robust! ;)

@jhughes-mw jhughes-mw merged commit 7ca2c2f into mathworks:main Jun 11, 2025
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.

3 participants