diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 0000000..4963e11 --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,19 @@ +name: typos + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +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..ff7c84a --- /dev/null +++ b/.typos.toml @@ -0,0 +1,15 @@ +[default.extend-words] +# Hierarchical Event Descriptors (HED) is a domain acronym used throughout +# the course. typos confuses it with HEAD. Preserve the exact casing. +HED = "HED" +hed = "hed" + +[files] +# Skip bundled third-party artifacts and lock files. +extend-exclude = [ + "presentations/**/assets/**", + "**/dist/**", + "**/node_modules/**", + "**/*.lock", + "**/bun.lock", +]