-
Notifications
You must be signed in to change notification settings - Fork 147
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
Add codespell support (config, workflow to detect/not fix) and make it fix few typos #492
base: main
Are you sure you want to change the base?
Conversation
Is it possible to use codespell with just pre-commit, so we don't need another GitHub workflow? |
yes
if we remove workflow - that would be gone - but it would just remove that convenience. |
We can deal with enforcing pre-commit in #489 I think keeping things simple and using just pre-commit is best, especially as typos should be infrequent after an initial review of the repo. |
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
62dbb7d
to
b381a39
Compare
Coolio, your call, rebased kicking away action and the TEMP commit with a typo, took out of draft. |
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.
Thanks. Ignore the pre-commit failure since it's due to pre-exisitng formatting issues, codespell is passing.
# Ref: https://github.com/codespell-project/codespell#using-a-config-file | ||
skip = '.git*,*.svg,*.lock' | ||
check-hidden = true | ||
ignore-regex = '\bTE\b' |
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.
Can you add a comment for why this is needed (presumably you've found some intentional use of TE
?)
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.