-
Notifications
You must be signed in to change notification settings - Fork 155
Add codespell support (config, workflow to detect/not fix) and make it fix some typos #1071
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
base: develop
Are you sure you want to change the base?
Conversation
smichel17
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest looks good
grab.js
Outdated
|
|
||
| const threshold = 300; | ||
| dy = Math.min(threshold, Math.abs(clone.y - this.initialY)); | ||
| dy = Math.min(threshold, Math.abs(clone.y - this.initially)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is wrong. Can it be smarter about camelCase and/or only linting comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, missed that. We can add regex to exclude all camelCases, e.g. `\b[a-z][A-Za-z]+\b' (Python regex), do you want me to do that? or we could exclude some specific ones like this to minimize possible false negatives.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think initalY is not very well readable, and if there is no strong reason to keep it that way, I would suggest renaming the variable.
|
should I rebase into PS FWIW, in some projects we eventually switched everywhere default branches to be the ones to seek PRs into to avoid hassle of needing to ask to rebase etc. Should may be |
|
Yes, all PRs should go to I wasn't involved with the decision to set up the branches how they are now (See CONTRIBUTING.md for history (it's short)). But We could probably do a better job of handling the install process (I'd guide people to use the |
e34c334 to
3a92e69
Compare
Automated fixes applied by codespell -w.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
=== Do not change lines below ===
{
"chain": [],
"cmd": "uvx codespell -w",
"exit": 65,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
Fixed typos that codespell detected but didn't auto-fix: - extact → extract (extract all mods) - initate → initiate (initiate visual destruction) - troube → trouble (is trouble) - essentiall → essentially (essentially disable) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
3a92e69 to
1e78016
Compare
|
re-based etc, might be ready for the prime time! ;-) |
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.