From 0e114c96c143c19364b5ed77d87199694c948daa Mon Sep 17 00:00:00 2001 From: Isaac Adewumi Date: Mon, 2 Dec 2024 15:17:26 +0100 Subject: [PATCH] ci: add typos to ci --- .github/workflows/ci.yml | 9 +++++++++ _typos.toml | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 _typos.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e49642e..49796ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,15 @@ concurrency: cancel-in-progress: true jobs: + check-typos: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎 + uses: actions/checkout@v4 + + - name: Run typos checker + uses: crate-ci/typos@master + commit-lint: runs-on: ubuntu-latest steps: diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000..4ffcb98 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,14 @@ +[files] +extend-exclude = [ + "public/**/*.svg", + "public/**/*.csv", + "pnpm-lock.yaml", +] + +[default] +extend-ignore-re = [ + "PnL" +] + +[default.extend-words] +teh = "teh" # example variable