add typos detection

This commit is contained in:
2025-12-25 11:26:10 +01:00
parent ea0ccb624f
commit 94275b96b0
8 changed files with 40 additions and 13 deletions

5
.github/workflows/typos.toml vendored Normal file
View File

@@ -0,0 +1,5 @@
[default.extend-words]
thm = "thm"
ba = "ba"
Strang = "Strang" # name
Bootle = "Bootle" # name

21
.github/workflows/typos.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: typos
on:
pull_request:
branches: [ main ]
types: [ready_for_review, opened, synchronize, reopened]
push:
branches:
- main
jobs:
typos:
if: github.event.pull_request.draft == false
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: .github/workflows/typos.toml