Skip to content

Commit 7d32d99

Browse files
committed
Simplify code spell CI system
Now that the parser tool is moved out of the repository, it makes less sense to use the taskfile-based approach for the CI infrastructure. In order to make the repository more contributor-friendly, the spell checking system is now reduced to a single workflow file.
1 parent 05b2539 commit 7d32d99

File tree

5 files changed

+10
-65
lines changed

5 files changed

+10
-65
lines changed

.codespellrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/spell-check.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
schedule:
1111
# Run every Tuesday at 03:00 UTC to catch breakage caused by updates to the dictionary
1212
- cron: "0 3 * * 2"
13+
workflow_dispatch:
14+
repository_dispatch:
1315

1416
jobs:
1517
spellcheck:
@@ -19,19 +21,12 @@ jobs:
1921
- name: Checkout
2022
uses: actions/checkout@v2
2123

22-
- name: Install Python
23-
uses: actions/setup-python@v2
24-
with:
25-
python-version: "3.8"
26-
27-
- name: Install Poetry
28-
run: pip install poetry
29-
30-
- name: Install Taskfile
31-
uses: arduino/actions/setup-taskfile@master
32-
with:
33-
repo-token: ${{ secrets.GITHUB_TOKEN }}
34-
version: 3.x
35-
3624
- name: Spell check
37-
run: task check-spelling
25+
uses: codespell-project/actions-codespell@master
26+
with:
27+
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
28+
ignore_words_list:
29+
builtin: clear,informal,en-GB_to_en-US
30+
check_filenames: true
31+
check_hidden: true
32+
skip: ./.git,./repositories.txt

Taskfile.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ tasks:
1010
- task: docs:check-license
1111
- task: docs:check-links
1212
- task: docs:check-formatting
13-
- task: check-spelling
1413

1514
docs:check-license:
1615
desc: Check if the license file is correctly formatted
@@ -53,11 +52,6 @@ tasks:
5352
cmds:
5453
- npx {{.PRETTIER}} --check "**/*.md"
5554

56-
check-spelling:
57-
desc: Check for commonly misspelled words
58-
cmds:
59-
- poetry install --no-root
60-
- poetry run codespell {{.CODESPELL_SKIP_OPTION}} {{.CODESPELL_IGNORE_WORDS_OPTION}}
6155

6256
config:check:
6357
desc: Lint and check formatting of configuration files
@@ -79,8 +73,3 @@ tasks:
7973
cmds:
8074
- npx {{.PRETTIER}} --write "**/*.{yml,yaml,json}"
8175

82-
correct-spelling:
83-
desc: Correct commonly misspelled words where possible
84-
cmds:
85-
- poetry install --no-root
86-
- poetry run codespell --write-changes {{.CODESPELL_SKIP_OPTION}} {{.CODESPELL_IGNORE_WORDS_OPTION}}

poetry.lock

Lines changed: 0 additions & 22 deletions
This file was deleted.

pyproject.toml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)