From 94339372fdc924efa574a2ff3449e0992c9ef87d Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 19 Jan 2025 20:13:05 -0800 Subject: [PATCH] Added typos --- .github/workflows/lints.yml | 20 ++++++++++++++++++++ typos.toml | 10 ++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/lints.yml create mode 100644 typos.toml diff --git a/.github/workflows/lints.yml b/.github/workflows/lints.yml new file mode 100644 index 0000000..bfa136e --- /dev/null +++ b/.github/workflows/lints.yml @@ -0,0 +1,20 @@ +on: + push: + branches: + - main + pull_request: + +name: Lints + +env: + RUSTFLAGS: "-Dwarnings" + +jobs: + typos: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check typos + uses: crate-ci/typos@master + with: + config: ./typos.toml diff --git a/typos.toml b/typos.toml new file mode 100644 index 0000000..05bc10f --- /dev/null +++ b/typos.toml @@ -0,0 +1,10 @@ +[default] +extend-words."LSAT" = "LSAT" + +extend-ignore-re = [ + # spell:disable-line + "(?Rm)^.*(%|#|//)\\s*spell:disable-line$", + + # spell: + "(?s)(%|#|//)\\s*spell:off.*?\\n\\s*(%|#|//)\\s*spell:on", +]