-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add typos-cli ci check (#1126)
**Motivation:** We frequently receive PRs for minor typo fixes. Recently, we addressed most of the typos in the repository (see #1119). However, this only corrects typos up to this point and does not prevent new typos from being introduced in the future. **Modifications:** - Added a CI workflow to check for typos using [typos-cli](https://github.com/crate-ci/typos). **Result:** Typos will now be automatically detected and linted.
- Loading branch information
1 parent
c9b1242
commit 7a05fa3
Showing
6 changed files
with
88 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
[files] | ||
extend-exclude = [ | ||
"**/lib/**", | ||
"**/docs/images/**", | ||
# Not present locally, but is in remote (github). | ||
"**/doc/**" | ||
] | ||
ignore-hidden = true | ||
ignore-files = true | ||
ignore-dot = true | ||
ignore-vcs = true | ||
ignore-global = true | ||
ignore-parent = true | ||
|
||
[default] | ||
binary = false | ||
check-filename = true | ||
check-file = true | ||
unicode = true | ||
ignore-hex = true | ||
identifier-leading-digits = false | ||
locale = "en" | ||
extend-ignore-identifiers-re = [] | ||
extend-ignore-words-re = [] | ||
extend-ignore-re = [] | ||
|
||
[default.extend-identifiers] | ||
|
||
# Weird syntax, but this how you ignore corrections for certain words. | ||
[default.extend-words] | ||
strat = "strat" | ||
froms = "froms" | ||
|
||
[type.go] | ||
extend-glob = [] | ||
extend-ignore-identifiers-re = [] | ||
extend-ignore-words-re = [] | ||
extend-ignore-re = [] | ||
|
||
[type.go.extend-identifiers] | ||
flate = "flate" | ||
|
||
[type.go.extend-words] | ||
|
||
[type.sh] | ||
extend-glob = [] | ||
extend-ignore-identifiers-re = [] | ||
extend-ignore-words-re = [] | ||
extend-ignore-re = [] | ||
|
||
[type.sh.extend-identifiers] | ||
ot = "ot" | ||
stap = "stap" | ||
|
||
[type.sh.extend-words] | ||
|
||
[type.py] | ||
extend-glob = [] | ||
extend-ignore-identifiers-re = [] | ||
extend-ignore-words-re = [] | ||
extend-ignore-re = [] | ||
|
||
[type.py.extend-identifiers] | ||
NDArray = "NDArray" | ||
arange = "arange" | ||
EOFError = "EOFError" | ||
|
||
[type.py.extend-words] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,19 @@ permissions: | |
contents: read | ||
pull-requests: read | ||
|
||
env: | ||
CLICOLOR: 1 | ||
|
||
jobs: | ||
typos: | ||
name: Typo Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: crate-ci/[email protected] | ||
with: | ||
config: .github/configs/typos-cli.toml | ||
|
||
commitlint: | ||
name: Commit Linting | ||
runs-on: ubuntu-latest | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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