Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 574f912

Browse files
committedNov 19, 2024·
Initial part of a new spellcheck
1 parent bd207cf commit 574f912

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed
 

‎.github/workflows/ignore-words.txt

-9
This file was deleted.

‎.github/workflows/spellcheck.yml

+16-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
name: Spell Checking
1+
name: Spellcheck
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
59
jobs:
6-
codespell:
7-
name: Check spelling with codespell
10+
spellcheck:
11+
name: Spelling
812
runs-on: ubuntu-latest
913
steps:
10-
- uses: actions/checkout@v4
11-
- name: Set up Python 3.12
12-
uses: actions/setup-python@v4
13-
with:
14-
python-version: 3.12
15-
- name: Install dependencies
16-
run: |
17-
python -m pip install --upgrade pip
18-
pip install codespell
19-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
20-
- name: Check spelling with codespell
21-
run: codespell --ignore-words=.github/workflows/ignore-words.txt || exit 1
14+
- uses: actions/checkout@v4
15+
with:
16+
ref: ${{ github.event.pull_request.head.sha }}
17+
show-progress: false
18+
- uses: codespell-project/actions-codespell@master
19+
with:
20+
builtin: clear,en-GB_to_en-US
21+
exclude_file: .codespell.exclude
22+
ignore_words_file: .codespell.words.exclude

0 commit comments

Comments
 (0)
Please sign in to comment.