Skip to content

Commit 15e20ae

Browse files
committed
add a ci job for typo checking
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
1 parent 1c86ec7 commit 15e20ae

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,3 +781,11 @@ jobs:
781781
- name: Check datafusion-proto
782782
working-directory: datafusion/proto
783783
run: cargo msrv --output-format json --log-target stdout verify
784+
typos:
785+
name: Spell Check with Typos
786+
runs-on: ubuntu-latest
787+
steps:
788+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
789+
with:
790+
persist-credentials: false
791+
- uses: crate-ci/typos@1.35.5

typos.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[default.extend-words]
2+
# random words from unit tests
3+
Pn = "Pn"
4+
fo = "fo"
5+
nd = "nd"
6+
Nd = "Nd"
7+
ba = "ba"
8+
ECT = "ECT"
9+
Ue = "Ue"
10+
Iy = "Iy"
11+
hte = "hte"
12+
numer = "numer"
13+
abd = "abd"
14+
aroun = "aroun"
15+
abov = "abov"
16+
Ois = "Ois"
17+
alo = "alo"
18+
19+
# abbreviations, common words, etc.
20+
typ = "typ"
21+
datas = "datas"
22+
YOUY = "YOUY"
23+
lits = "lits"
24+
25+
# exposed to public API
26+
Serializeable = "Serializeable"
27+
28+
# from test cases like TPC-* or ClickBench
29+
carefull = "carefull"
30+
precentage = "precentage"
31+
flate = "flate"
32+
hom = "hom"
33+
alph = "alph"
34+
wih = "wih"
35+
Ded = "Ded"
36+
37+
[files]
38+
extend-exclude = [
39+
"*.slt",
40+
"*.slt.part",
41+
"*.svg",
42+
"*.sql",
43+
"dev/changelog/**",
44+
"benchmarks/**",
45+
"*.csv"
46+
]

0 commit comments

Comments
 (0)