Skip to content

Commit 4fbfc4f

Browse files
committed
Add typos configuration for spell checking
- Add _typos.toml with custom ignore rules for codebase-specific terms - Ignore 'strat'/'Strat' as common variable names - Ignore 'adnlp_backen'/'ipopt_backen' test fixtures - Update SpellCheck workflow to use custom config
1 parent 655392b commit 4fbfc4f

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/SpellCheck.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ on:
77
jobs:
88
call:
99
uses: control-toolbox/CTActions/.github/workflows/spell-check.yml@main
10+
with:
11+
config-path: '_typos.toml'

_typos.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[default]
2+
locale = "en"
3+
extend-ignore-re = [
4+
"adnlp_backen",
5+
"ipopt_backen",
6+
# Common variable names in our codebase
7+
"strat",
8+
"Strat",
9+
]
10+
11+
[files]
12+
extend-exclude = [
13+
"*.json",
14+
"*.toml",
15+
"*.svg",
16+
]

0 commit comments

Comments
 (0)