-
Notifications
You must be signed in to change notification settings - Fork 349
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
chore: fix typo & add spell check #713
base: main
Are you sure you want to change the base?
Conversation
Pls submit more as much as possible |
@AsterDY |
sure,you can add it |
Signed-off-by: spacewander <[email protected]>
@AsterDY |
It seems the self-hosted runner doesn't have pip installed. I will handle it later. |
Signed-off-by: spacewander <[email protected]>
.github/workflows/lint.yml
Outdated
python3 <(curl -s https://bootstrap.pypa.io/pip/3.7/get-pip.py) | ||
pip install codespell==2.3.0 | ||
# ignore test files, go project names, binary files via `--skip` and special var/regex via `--ignore-words` | ||
git grep --cached -l '' | xargs codespell --skip 'fuzz/*,*_test.tmpl,testdata/*,*_test.go,go.mod,go.sum,*.gz' --ignore-words=.github/workflows/.ignore_words |
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'm also a codespell fan and user
I would like to suggest you to create a .codespellrc file
This way codespell could be invoked locally with the same options that you are defining
The syntax is something close to this
[[codespell]]
skip='fuzz/*,*_test.tmpl,testdata/*,*_test.go,go.mod,go.sum,*.gz' ignore-words=.github/workflows/.ignore_words
And here it could simplified
git grep --cached -l '' | xargs codespell --skip 'fuzz/*,*_test.tmpl,testdata/*,*_test.go,go.mod,go.sum,*.gz' --ignore-words=.github/workflows/.ignore_words | |
git grep --cached -l '' | xargs codespell |
Co-authored-by: ccoVeille <[email protected]>
Signed-off-by: spacewander <[email protected]>
@AsterDY @ccoVeille |
No description provided.