-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* spellcheck CI * typos
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
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,21 @@ | ||
# adapted from https://github.com/JuliaDocs/Documenter.jl/blob/master/.github/workflows/SpellCheck.yml | ||
# see docs at https://github.com/crate-ci/typos | ||
name: Spell Check | ||
on: [pull_request] | ||
|
||
jobs: | ||
typos-check: | ||
name: Spell Check with Typos | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Actions Repository | ||
uses: actions/checkout@v4 | ||
- name: Check spelling | ||
uses: crate-ci/typos@master | ||
with: | ||
config: _typos.toml | ||
write_changes: true | ||
- uses: reviewdog/action-suggester@v1 | ||
with: | ||
tool_name: Typos | ||
fail_on_error: true |
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,25 @@ | ||
# https://github.com/crate-ci/typos#false-positives | ||
[default] | ||
|
||
[default.extend-identifiers] | ||
Lik = "Lik" | ||
missings = "missings" | ||
# misspelled in the car::Cowles dataset | ||
Extraversion = "Extraversion" | ||
extraversion = "extraversion" | ||
Fo = "Fo" | ||
|
||
[default.extend-words] | ||
Lik = "Lik" | ||
missings = "missings" | ||
|
||
|
||
[type.package_toml] | ||
# Don't check spellings in these files | ||
extend-glob = ["Manifest.toml", "Project.toml"] | ||
check-file = false | ||
|
||
[type.bib] | ||
# contain lots of names, which are a great spot for false positives | ||
extend-glob = ["*.bib"] | ||
check-file = false |
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