🩺(CI) add lint spell mistakes

We get lot of pull requests about typo.
We add codespell linter in the CI, it will inform
us if we introduce spell mistakes.
This commit is contained in:
Anthony LC
2025-05-09 00:02:25 +02:00
parent fb90c13dad
commit 4f126ab824
2 changed files with 20 additions and 0 deletions

View File

@@ -61,6 +61,25 @@ jobs:
exit 1 exit 1
fi fi
lint-spell-mistakes:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install codespell
run: pip install --user codespell
- name: Check for typos
run: |
codespell \
--check-filenames \
--ignore-words-list "Dokument,afterAll,excpt,statics" \
--skip "./git/" \
--skip "**/*.po" \
--skip "**/*.pot" \
--skip "**/*.json" \
--skip "**/yarn.lock"
lint-back: lint-back:
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults: defaults:

View File

@@ -14,6 +14,7 @@ and this project adheres to
- ✨ Add a custom callout block to the editor #892 - ✨ Add a custom callout block to the editor #892
- 🚩(frontend) version MIT only #911 - 🚩(frontend) version MIT only #911
- ✨(backend) integrate maleware_detection from django-lasuite #936 - ✨(backend) integrate maleware_detection from django-lasuite #936
- 🩺(CI) add lint spell mistakes #954
## Changed ## Changed