Skip to content

Commit 4f126ab

Browse files
committed
🩺(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.
1 parent fb90c13 commit 4f126ab

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/impress.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,25 @@ jobs:
6161
exit 1
6262
fi
6363
64+
lint-spell-mistakes:
65+
runs-on: ubuntu-latest
66+
if: github.event_name == 'pull_request'
67+
steps:
68+
- name: Checkout repository
69+
uses: actions/checkout@v2
70+
- name: Install codespell
71+
run: pip install --user codespell
72+
- name: Check for typos
73+
run: |
74+
codespell \
75+
--check-filenames \
76+
--ignore-words-list "Dokument,afterAll,excpt,statics" \
77+
--skip "./git/" \
78+
--skip "**/*.po" \
79+
--skip "**/*.pot" \
80+
--skip "**/*.json" \
81+
--skip "**/yarn.lock"
82+
6483
lint-back:
6584
runs-on: ubuntu-latest
6685
defaults:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to
1414
- ✨ Add a custom callout block to the editor #892
1515
- 🚩(frontend) version MIT only #911
1616
- ✨(backend) integrate maleware_detection from django-lasuite #936
17+
- 🩺(CI) add lint spell mistakes #954
1718

1819
## Changed
1920

0 commit comments

Comments
 (0)