-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
49 lines (46 loc) · 1.42 KB
/
SpellCheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Spell Check
permissions: {}
on: [pull_request]
jobs:
typos-check:
name: Spell Check with Typos
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout the JuliaLang/julia repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Check spelling
uses: crate-ci/typos@master
codespell:
# https://github.com/codespell-project/codespell
# This is a catch-all job to cover file extensions that aren't in another job
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: pip install codespell
- run: codespell --skip='*.c,*.cpp,*.jl,*.md,*.scm,*.toml,*.S' --ignore-words=.codespell.ignore
codespell-file-extension:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
file-extension:
- 'c' # C files
- 'cpp' # C++ files
- 'jl' # Julia files
- 'md' # Markdown files
- 'scm' # Scheme (femtolisp) files
- 'toml' # TOML files
- 'S' # Assembly language files
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: pip install codespell
- run: find . -type f -name '*.${{ matrix.file-extension }}' -exec codespell --ignore-words=.codespell.jl.ignore {} \;