From a0cfca74a08525e7f399a9299168ecd64fe83f26 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Mon, 8 Jul 2024 17:25:26 -0700 Subject: [PATCH] CI: Add codespell --- .codespell-ignore-words | 2 ++ .codespellrc | 3 +++ .github/workflows/codespell.yml | 23 +++++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 .codespell-ignore-words create mode 100644 .codespellrc create mode 100644 .github/workflows/codespell.yml diff --git a/.codespell-ignore-words b/.codespell-ignore-words new file mode 100644 index 0000000..4e0a361 --- /dev/null +++ b/.codespell-ignore-words @@ -0,0 +1,2 @@ +parms +ptd diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..09c74c6 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,3 @@ +[codespell] +skip = .git,*.ipynb,*.bib,*.ps,*.patch,*~,CHANGES,*/Submodules,*/tmp_build_dir,Cell_D_* +ignore-words = .codespell-ignore-words diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..bec24c5 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,23 @@ +name: codespell + +on: [push, pull_request] + +concurrency: + group: ${{ github.ref }}-${{ github.head_ref }}-codespell + cancel-in-progress: true + +jobs: + codespell: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install codespell + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends python3-pip + pip3 install --user codespell + + - name: Run codespell + run: codespell