Skip to content

Commit 6a247a0

Browse files
committed
add typos github action
1 parent 3b8ab52 commit 6a247a0

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/CI.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,24 @@ jobs:
4141
tool_name: JuliaFormatter
4242
fail_on_error: true
4343

44+
typos-check:
45+
name: Spell Check with Typos
46+
# Run on PRs
47+
if: github.event_name == 'pull_request'
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Checkout Actions Repository
51+
uses: actions/checkout@v4
52+
- name: Check spelling
53+
uses: crate-ci/typos@master
54+
with:
55+
config: ./_typos.toml
56+
write_changes: true
57+
- uses: reviewdog/action-suggester@v1
58+
with:
59+
tool_name: Typos
60+
fail_on_error: true
61+
4462
test:
4563
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
4664
runs-on: ${{ matrix.os }}

_typos.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# https://github.com/crate-ci/typos#false-positives
2+
[default]
3+
4+
[default.extend-identifiers]
5+
missings = "missings"
6+
Missings = "Missings"
7+
Artic = "Artic"
8+
9+
[default.extend-words]
10+
qest = "qest"

0 commit comments

Comments
 (0)