Skip to content

Commit 2ea5960

Browse files
authored
update cspell config (RustPython#7452)
* add allowCompoundWords * cspell dict
1 parent 2a61237 commit 2ea5960

2 files changed

Lines changed: 41 additions & 74 deletions

File tree

.cspell.dict/rustpython.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
cfgs
2+
miri
3+
py
4+
pyarg
5+
pyargs
6+
pyast
7+
pyattr
8+
pyclass
9+
pyclassmethod
10+
pyexception
11+
pyfunction
12+
pygetset
13+
pyimpl
14+
pylib
15+
pymath
16+
pymethod
17+
pymodule
18+
pyname
19+
pyobj
20+
pyobject
21+
pypayload
22+
pyref
23+
pyslot
24+
pystaticmethod
25+
pystone
26+
pystr
27+
pystruct
28+
pystructseq
29+
pytype
30+
rustix
31+
struc
32+
zelf

.cspell.json

Lines changed: 9 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
"@cspell/dict-win32/cspell-ext.json",
1010
"@cspell/dict-shell/cspell-ext.json",
1111
],
12+
"allowCompoundWords": true,
1213
// language - current active spelling language
1314
"language": "en",
1415
// dictionaries - list of the names of the dictionaries to use
1516
"dictionaries": [
1617
"cpython", // Sometimes keeping same terms with cpython is easy
1718
"python-more", // Python API terms not listed in python
1819
"rust-more", // Rust API terms not listed in rust
20+
"rustpython", // RustPython derive macros and internal terms
1921
"en_US",
2022
"softwareTerms",
2123
"c",
@@ -38,6 +40,10 @@
3840
{
3941
"name": "rust-more",
4042
"path": "./.cspell.dict/rust-more.txt"
43+
},
44+
{
45+
"name": "rustpython",
46+
"path": "./.cspell.dict/rustpython.txt"
4147
}
4248
],
4349
"ignorePaths": [
@@ -46,112 +52,41 @@
4652
"Lib/**"
4753
],
4854
// words - list of words to be always considered correct
55+
// (compound words like pyarg, baseclass, microbenchmark are handled by allowCompoundWords)
4956
"words": [
50-
"RUSTPYTHONPATH",
51-
// RustPython terms
5257
"aiterable",
5358
"alnum",
54-
"baseclass",
55-
"boxvec",
56-
"Bytecode",
57-
"cfgs",
58-
"codegen",
5959
"coro",
6060
"dedentations",
6161
"dedents",
6262
"deduped",
6363
"deoptimize",
64-
"downcastable",
65-
"downcasted",
66-
"dumpable",
6764
"emscripten",
6865
"excs",
69-
"finalizer",
70-
"finalizers",
71-
"GetSet",
72-
"groupref",
73-
"internable",
7466
"interps",
7567
"jitted",
7668
"jitting",
7769
"kwonly",
7870
"lossily",
79-
"makeunicodedata",
8071
"mcache",
81-
"microbenchmark",
82-
"microbenchmarks",
83-
"miri",
84-
"notrace",
8572
"oparg",
86-
"openat",
87-
"pyarg",
88-
"pyargs",
89-
"pyast",
90-
"PyAttr",
9173
"pyc",
92-
"PyClass",
93-
"PyClassMethod",
94-
"PyException",
95-
"PyFunction",
96-
"pygetset",
97-
"pyimpl",
98-
"pylib",
99-
"pymath",
100-
"pymember",
101-
"PyMethod",
102-
"PyModule",
103-
"pyname",
104-
"pyobj",
105-
"PyObject",
106-
"pypayload",
107-
"PyProperty",
108-
"pyref",
109-
"PyResult",
110-
"pyslot",
111-
"PyStaticMethod",
112-
"pystone",
113-
"pystr",
114-
"pystruct",
115-
"pystructseq",
116-
"pytrace",
117-
"pytype",
118-
"reducelib",
119-
"richcompare",
120-
"rustix",
121-
"RustPython",
12274
"significand",
123-
"struc",
124-
"summands", // plural of summand
125-
"sysmodule",
126-
"tracebacks",
127-
"typealiases",
128-
"typevartuples",
129-
"uncollectable",
130-
"unhashable",
131-
"uninit",
75+
"summands",
13276
"unraisable",
133-
"unresizable",
134-
"varint",
13577
"wasi",
13678
"weaked",
137-
"zelf",
13879
// unix
13980
"posixshmem",
14081
"shm",
14182
"CLOEXEC",
142-
"codeset",
14383
"endgrent",
14484
"gethrvtime",
14585
"getrusage",
146-
"nanosleep",
14786
"sigaction",
148-
"sighandler",
14987
"WRLCK",
15088
// win32
151-
"birthtime",
152-
"IFEXEC",
153-
// "stat"
154-
"FIRMLINK",
89+
"IFEXEC"
15590
],
15691
// flagWords - list of words to be always considered incorrect
15792
"flagWords": [

0 commit comments

Comments
 (0)