Skip to content

Commit b4ee00d

Browse files
committed
chore: introduce crate-ci/typos
1 parent 17c654e commit b4ee00d

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,20 @@ jobs:
213213
- name: clippy check (default features)
214214
run: cargo clippy --workspace --all-targets
215215

216+
check_typos:
217+
timeout-minutes: 30
218+
name: Checking typos
219+
runs-on: ubuntu-latest
220+
env:
221+
RUSTC_WRAPPER: "sccache"
222+
SCCACHE_GHA_ENABLED: "on"
223+
steps:
224+
- uses: actions/checkout@v4
225+
- uses: taiki-e/install-action@v2
226+
with:
227+
tool: typos-cli,hurlfmt
228+
- run: typos
229+
216230
msrv:
217231
if: "github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
218232
timeout-minutes: 30

.typos.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[files]
2+
# We can't change the `CHANGELOG` without changing old commit message
3+
extend-exclude = [
4+
"CHANGELOG_old.md",
5+
"CHANGELOG.md"
6+
]
7+
8+
[default]
9+
extend-ignore-re = [
10+
# Line ignore with trailing `// spellchecker:disable-line`
11+
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$",
12+
13+
# Abbreviations
14+
"UPnP",
15+
16+
# Library name
17+
"tung",
18+
19+
# Hex
20+
"ba",
21+
]
22+
23+
[default.extend-words]
24+
# Library name
25+
ratatui = "ratatui"

0 commit comments

Comments
 (0)