-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
Fix typos #7241
Fix typos #7241
Conversation
For anyone interested in [files]
extend-exclude = [
".git/",
".codespell.ignore.txt",
"go.mod",
"go.sum",
"vendor/",
]
ignore-hidden = false
[default]
extend-ignore-re = [
# PEM
"\\b[+/0-9=A-Za-z]{64}\\b",
' := `\{"[0-9A-Z_a-z-]{36,}"\}`',
'"(csr|d|dp|n|protected|qi|signature|y)": ?"[0-9=A-Z_a-z-]{36,}"',
'bigIntFromB64\("[0-9=A-Z_a-z-]{36,}"\)',
"0002a4ba3cf408927759",
"65CuDAA",
'"sql_warnings", "TrUe"',
'"tx_read_only", "FalSe"',
"evenMOREcaps",
'"iSsUe"',
]
[default.extend-words]
# Extended DNS Error
"ede" = "ede"
# Alternative spelling
"unmarshaling" = "unmarshaling"
[default.extend-identifiers]
"caaFailer" = "caaFailer"
"challStrat" = "challStrat"
"ExpectedStratType" = "ExpectedStratType"
"otConf" = "otConf"
"serInt" = "serInt"
"StratName" = "StratName"
"UPDATEs" = "UPDATEs"
"vai" = "vai" |
Thanks! We currently use |
You're welcome. I could replace codespell with typos. |
But typos is a single Go binary, not a Python package
|
That seems alright, let's give it a shot. |
Sorry. I was wrong. I know how to download it locally, and how to use it in GitHub Actions. |
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 for catching these typos! As far as I can tell, the rust "typos" crate behaves very differently from codespell -- rather than having a dictionary of known words and triggering on anything it doesn't recognize, it has a dictionary of known typos and triggers on seeing those. So it has low false positives, but potentially high false negatives. I'd be happy to accept a PR which runs it alongside codespell; I think we'd want to talk a bit more about using it to wholly replace codespell.
@szepeviktor We discussed this today, and we'd be happy to replace codespell with typos! Removing python from our toolchain is good. I'm going to merge this change now so we get these benefits immediately, but if you'd like to prepare another PR that removes codespell and replaces it with pre-built |
All right. Line 222 in 5c0ca04
|
No, the only reason test.sh is able to directly call codespell like that is because test.sh runs inside our testing docker container, which installs codespell as part of the container creation process. You'll want to remove that, and probably want to add steps that install |
Found new misspellings.
typos
is a better tool than the current spell checker.