From f57fa4cb1adf59edc947cdb41189a232eba4fed7 Mon Sep 17 00:00:00 2001 From: arnaucube Date: Sun, 25 Feb 2024 09:43:10 +0100 Subject: [PATCH] Add typos to CI --- .github/workflows/ci.yml | 10 ++++++++++ .github/workflows/typos.toml | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/typos.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7dcbdffa..1f99ac50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,3 +102,13 @@ jobs: with: command: clippy args: --all-targets --all-features -- -D warnings + + typos: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use typos with config file + uses: crate-ci/typos@master + with: + config: ./typos.toml diff --git a/.github/workflows/typos.toml b/.github/workflows/typos.toml new file mode 100644 index 00000000..a86c483c --- /dev/null +++ b/.github/workflows/typos.toml @@ -0,0 +1,13 @@ +[default] +extend-ignore-identifiers-re = [ + # *sigh* this just isn't worth the cost of fixing + "AttributeID.*Supress.*", +] + +[default.extend-identifiers] +# *sigh* this just isn't worth the cost of fixing +AttributeIDSupressMenu = "AttributeIDSupressMenu" + +[default.extend-words] +# Don't correct the surname "Teh" +groth = "groth"