diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2fa43834b..234c037c0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,12 @@ jobs: - run: cargo fmt --check --all - run: cargo test --package front_matter + spelling: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + - uses: crate-ci/typos@7436548694def3314aacd93ed06c721b1f91ea04 # v1.37.2 + build: runs-on: ubuntu-latest steps: diff --git a/typos.toml b/typos.toml new file mode 100644 index 000000000..0809d59be --- /dev/null +++ b/typos.toml @@ -0,0 +1,41 @@ +## See also docs: https://github.com/crate-ci/typos/blob/v1.28.2/docs/reference.md + +[files] +extend-exclude = [ +] + +[default.extend-words] +## Add exclusions here, lines should be like `x = "x"`, where `x` is excluded word. +moreso = "moreso" + +[default.extend-identifiers] +## Add exclusions here, lines should be like `x = "x"`, where `x` is excluded word. +# Package name +flate2 = "flate2" +# People's names +Schol = "Schol" +Theis = "Theis" +Cornel = "Cornel" +Signes = "Signes" +Wirth = "Wirth" +fliter = "fliter" +# User names +durin42 = "durin42" +# Don't break file links +platforms_targetted = "platforms_targetted" + +[default] +extend-ignore-words-re = [ + # words with length <= 4 chars is likely noise + '^[a-zA-Z]{1,4}$', +] + +extend-ignore-re = [ + '1\.53\.0-prelease.md', # don't break links +] + +[type.svg] +check-file = false # not likely to have relevant typos but false positives + +[type.minified] +check-file = false # generated content