Skip to content

Commit b358610

Browse files
authored
more cspell (RustPython#4702)
1 parent 1235594 commit b358610

File tree

18 files changed

+134
-54
lines changed

18 files changed

+134
-54
lines changed

.cspell.json

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,50 +26,85 @@
2626
"words": [
2727
// Rust
2828
"ahash",
29+
"bidi",
30+
"biguint",
2931
"bindgen",
3032
"bitflags",
33+
"bstr",
34+
"byteorder",
3135
"chrono",
36+
"consts",
3237
"cstring",
3338
"flate2",
39+
"fract",
3440
"hasher",
3541
"idents",
3642
"indexmap",
3743
"insta",
3844
"keccak",
3945
"lalrpop",
4046
"libc",
47+
"libz",
48+
"longlong",
4149
"Manually",
4250
"maplit",
4351
"memmap",
4452
"metas",
53+
"modpow",
54+
"nanos",
4555
"peekable",
56+
"powc",
57+
"powf",
4658
"prepended",
4759
"punct",
60+
"replacen",
61+
"rsplitn",
4862
"rustc",
4963
"rustfmt",
5064
"splitn",
65+
"subsec",
66+
"timsort",
5167
"trai",
68+
"ulonglong",
5269
"unic",
5370
"unistd",
71+
"winapi",
72+
"winsock",
5473
// Python
5574
"abstractmethods",
5675
"aiter",
5776
"anext",
77+
"arrayiterator",
78+
"arraytype",
79+
"asend",
80+
"athrow",
5881
"basicsize",
5982
"cformat",
6083
"classcell",
84+
"closesocket",
6185
"codepoint",
86+
"codepoints",
6287
"cpython",
88+
"decompressor",
6389
"defaultaction",
6490
"descr",
6591
"dictcomp",
92+
"dictitems",
93+
"dictkeys",
94+
"dictview",
6695
"docstring",
6796
"docstrings",
6897
"dunder",
6998
"eventmask",
7099
"fdel",
100+
"fget",
71101
"fileencoding",
102+
"fillchar",
72103
"finallyhandler",
104+
"frombytes",
105+
"fromhex",
106+
"fromunicode",
107+
"fset",
73108
"fspath",
74109
"fstring",
75110
"fstrings",
@@ -79,26 +114,38 @@
79114
"getnewargs",
80115
"getweakrefcount",
81116
"getweakrefs",
117+
"hostnames",
82118
"idiv",
83119
"impls",
120+
"infj",
84121
"instancecheck",
85122
"instanceof",
123+
"isabstractmethod",
124+
"itemiterator",
86125
"itemsize",
87126
"iternext",
127+
"keyiterator",
88128
"kwarg",
89129
"kwargs",
90130
"linearization",
91131
"linearize",
92132
"listcomp",
93133
"mappingproxy",
94134
"maxsplit",
95-
"MemoryView",
135+
"memoryview",
136+
"memoryviewiterator",
96137
"metaclass",
97138
"metaclasses",
98139
"metatype",
140+
"mro",
141+
"mros",
142+
"nanj",
143+
"ndigits",
99144
"ndim",
100145
"nonbytes",
101146
"origname",
147+
"posixsubprocess",
148+
"pyexpat",
102149
"PYTHONDEBUG",
103150
"PYTHONHOME",
104151
"PYTHONINSPECT",
@@ -108,14 +155,27 @@
108155
"PYTHONVERBOSE",
109156
"PYTHONWARNINGS",
110157
"qualname",
158+
"radd",
111159
"rdiv",
160+
"rdivmod",
161+
"reconstructor",
162+
"reversevalueiterator",
163+
"rfloordiv",
164+
"rlshift",
165+
"rmod",
166+
"rpow",
167+
"rrshift",
168+
"rsub",
169+
"rtruediv",
170+
"scproxy",
112171
"setattro",
113172
"setcomp",
114173
"stacklevel",
115174
"subclasscheck",
116175
"subclasshook",
117176
"unionable",
118177
"unraisablehook",
178+
"valueiterator",
119179
"vararg",
120180
"varargs",
121181
"varnames",
@@ -165,6 +225,7 @@
165225
"pystruct",
166226
"pystructseq",
167227
"pytrace",
228+
"reducelib",
168229
"richcompare",
169230
"RustPython",
170231
"struc",
@@ -215,6 +276,7 @@
215276
"unparser",
216277
"VARKEYWORDS",
217278
"varkwarg",
279+
"wbits",
218280
"withitem",
219281
"withs"
220282
],

stdlib/src/array.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// spell-checker:ignore typecode tofile tolist fromfile
2+
13
use rustpython_vm::{PyObjectRef, VirtualMachine};
24

35
pub(crate) fn make_module(vm: &VirtualMachine) -> PyObjectRef {

stdlib/src/binascii.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// spell-checker:ignore hexlify unhexlify uuencodes
2+
13
pub(super) use decl::crc32;
24
pub(crate) use decl::make_module;
35
use rustpython_vm::{builtins::PyBaseExceptionRef, convert::ToPyException, VirtualMachine};

stdlib/src/bz2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// spell-checker:ignore compresslevel
2+
13
pub(crate) use _bz2::make_module;
24

35
#[pymodule]

stdlib/src/hashlib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// spell-checker:ignore usedforsecurity HASHXOF
2+
13
pub(crate) use hashlib::make_module;
24

35
#[pymodule]

stdlib/src/syslog.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// spell-checker:ignore logoption openlog setlogmask upto
2+
13
pub(crate) use syslog::make_module;
24

35
#[pymodule(name = "syslog")]

stdlib/src/unicodedata.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/* Access to the unicode database.
22
See also: https://docs.python.org/3/library/unicodedata.html
33
*/
4+
5+
// spell-checker:ignore nfkc unistr unidata
6+
47
use crate::vm::{
58
builtins::PyStr, convert::TryFromBorrowedObject, PyObject, PyObjectRef, PyPayload, PyResult,
69
VirtualMachine,

stdlib/src/zlib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// spell-checker:ignore compressobj decompressobj zdict chunksize zlibmodule miniz
2+
13
pub(crate) use zlib::make_module;
24

35
#[pymodule]

vm/src/anystr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ pub trait AnyStr {
194194
SW: Fn(&Self, isize, &VirtualMachine) -> Vec<R>,
195195
{
196196
let (sep, maxsplit) = args.get_value(vm)?;
197-
let splited = if let Some(pattern) = sep {
197+
let splits = if let Some(pattern) = sep {
198198
if maxsplit < 0 {
199199
split(self, pattern.as_ref(), vm)
200200
} else {
@@ -203,7 +203,7 @@ pub trait AnyStr {
203203
} else {
204204
splitw(self, maxsplit, vm)
205205
};
206-
Ok(splited)
206+
Ok(splits)
207207
}
208208
fn py_split_whitespace<F>(&self, maxsplit: isize, convert: F) -> Vec<PyObjectRef>
209209
where

vm/src/builtins/float.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// spell-checker:ignore numer denom
2+
13
use super::{
24
try_bigint_to_f64, PyByteArray, PyBytes, PyInt, PyIntRef, PyStr, PyStrRef, PyType, PyTypeRef,
35
};

0 commit comments

Comments
 (0)