From 7c39261ecbb2b5ddc8adf303c4f4e23ee357fef7 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Tue, 11 Feb 2025 17:48:01 +0900 Subject: [PATCH] CI: introduce workflow to check spelling Signed-off-by: Kentaro Hayashi --- .codespellrc | 4 ++++ .github/workflows/codespell.yml | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .codespellrc create mode 100644 .github/workflows/codespell.yml diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 00000000..185a00cd --- /dev/null +++ b/.codespellrc @@ -0,0 +1,4 @@ +[codespell] +skip = node_modules, _book, images +count = +ignore-words-list = aNULL, userA, followings diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 00000000..54d97938 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,23 @@ +name: Add check with codespell + +on: + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + spell-check: + name: check spelling with codespell + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + - name: Install codespell + run: pip install codespell + - name: Run codespell + run: codespell