Skip to content

Commit

Permalink
Initial part of a new spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGiraffe3 committed Nov 19, 2024
1 parent bd207cf commit 574f912
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ignore-words.txt

This file was deleted.

31 changes: 16 additions & 15 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
name: Spell Checking
name: Spellcheck

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
codespell:
name: Check spelling with codespell
spellcheck:
name: Spelling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install codespell
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Check spelling with codespell
run: codespell --ignore-words=.github/workflows/ignore-words.txt || exit 1
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
show-progress: false
- uses: codespell-project/actions-codespell@master
with:
builtin: clear,en-GB_to_en-US
exclude_file: .codespell.exclude
ignore_words_file: .codespell.words.exclude

0 comments on commit 574f912

Please sign in to comment.