diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5e2f95e5..55c6785f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -90,3 +90,12 @@ jobs: - uses: taiki-e/install-action@nextest - run: ci/nextest-compat.sh + + # If this fails, consider changing your text or adding something to .typos.toml + typos: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: check typos + uses: crate-ci/typos@v1.23.5 diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 00000000..63ae8be2 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,22 @@ +# See the configuration reference at +# https://github.com/crate-ci/typos/blob/master/docs/reference.md + +# Corrections take the form of a key/value pair. The key is the incorrect word +# and the value is the correct word. If the key and value are the same, the +# word is treated as always correct. If the value is an empty string, the word +# is treated as always incorrect. + +# Match Identifier - Case Sensitive +[default.extend-identifiers] +Nd = "Nd" +thr = "thr" + +# Match Inside a Word - Case Insensitive +[default.extend-words] + +[files] +# Include .github, .cargo, etc. +ignore-hidden = false +# /.git isn't in .gitignore, because git never tracks it. +# Typos doesn't know that, though. +extend-exclude = ["/.git"]