Add codespell support (config, workflow to detect/not fix) and make it fix few typos#64
Open
yarikoptic wants to merge 5 commits into2i2c-org:mainfrom
Open
Add codespell support (config, workflow to detect/not fix) and make it fix few typos#64yarikoptic wants to merge 5 commits into2i2c-org:mainfrom
yarikoptic wants to merge 5 commits into2i2c-org:mainfrom
Conversation
=== Do not change lines below ===
{
"chain": [],
"cmd": "codespell -w -i 3 -C 2 ./src/ImageBuilder.jsx",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
=== Do not change lines below ===
{
"chain": [],
"cmd": "codespell -w",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
for more information, see https://pre-commit.ci
yuvipanda
reviewed
Jul 10, 2024
| rev: v2.2.6 | ||
| hooks: | ||
| - id: codespell | ||
| additional_dependencies: |
Member
There was a problem hiding this comment.
Can you make it autofix as well? That's what I generally do for all pre-commit hooks! I think we ended up adding it to the infra repo as well! https://github.com/2i2c-org/infrastructure/blob/464d556c4ea931a6761d6702c444d5c2ded9203d/.pre-commit-config.yaml#L69
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.