Skip to content

Commit efa81c1

Browse files
authored
spellcheck CI (#23)
1 parent 382da30 commit efa81c1

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/spellcheck.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# adapted from https://github.com/JuliaDocs/Documenter.jl/blob/master/.github/workflows/SpellCheck.yml
2+
# see docs at https://github.com/crate-ci/typos
3+
name: Spell Check
4+
on: [pull_request]
5+
6+
jobs:
7+
typos-check:
8+
name: Spell Check with Typos
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Actions Repository
12+
uses: actions/checkout@v4
13+
- name: Check spelling
14+
uses: crate-ci/typos@master
15+
# don't fail on typos in files not impacted by this PR
16+
continue-on-error: true
17+
with:
18+
config: _typos.toml
19+
write_changes: true
20+
- uses: reviewdog/action-suggester@v1
21+
with:
22+
tool_name: Typos
23+
fail_on_error: true

_typos.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# https://github.com/crate-ci/typos#false-positives
2+
[default]
3+
4+
[default.extend-identifiers]
5+
Lik = "Lik"
6+
missings = "missings"
7+
8+
[default.extend-words]
9+
Lik = "Lik"
10+
missings = "missings"
11+
12+
[type.package_toml]
13+
# Don't check spellings in these files
14+
extend-glob = ["Manifest.toml", "Project.toml"]
15+
check-file = false
16+
17+
[type.bib]
18+
# contain lots of names, which are a great spot for false positives
19+
extend-glob = ["*.bib"]
20+
check-file = false

0 commit comments

Comments
 (0)