From 4f126ab82445eab3de3dab4146bf372e909bebe6 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Fri, 9 May 2025 00:02:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=BA(CI)=20add=20lint=20spell=20mistake?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We get lot of pull requests about typo. We add codespell linter in the CI, it will inform us if we introduce spell mistakes. --- .github/workflows/impress.yml | 19 +++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 20 insertions(+) diff --git a/.github/workflows/impress.yml b/.github/workflows/impress.yml index 97182a57..0db5b2fd 100644 --- a/.github/workflows/impress.yml +++ b/.github/workflows/impress.yml @@ -61,6 +61,25 @@ jobs: exit 1 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: runs-on: ubuntu-latest defaults: diff --git a/CHANGELOG.md b/CHANGELOG.md index a9474480..502313c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to - ✨ Add a custom callout block to the editor #892 - 🚩(frontend) version MIT only #911 - ✨(backend) integrate maleware_detection from django-lasuite #936 +- 🩺(CI) add lint spell mistakes #954 ## Changed