8000 update cspell dicts and ci order by youknowone · Pull Request #5668 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

update cspell dicts and ci order #5668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cspell.dict/cpython.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ cellarg
cellvar
cellvars
cmpop
weakreflist
XXPRIME
dictoffset
elts
xstat
excepthandler
fileutils
finalbody
freevar
freevars
fromlist
heaptype
HIGHRES
IMMUTABLETYPE
kwonlyarg
kwonlyargs
Expand Down
107 changes: 104 additions & 3 deletions .cspell.dict/python-more.txt
Original file line number Diff line number Diff line change
@@ -1,79 +1,152 @@
abiflags
abstractmethods
aenter
aexit
aiter
anext
appendleft
argcount
arrayiterator
arraytype
asend
asyncgen
athrow
backslashreplace
basicsize
bdfl
bigcharset
breakpointhook
cformat
chunksize
classcell
closefd
closesocket
codepoint
codepoints
codesize
contextvar
cpython
cratio
dealloc
debugbuild
decompressor
defaultaction
descr
dictcomp
dictitems
dictkeys
dictview
digestmod
dllhandle
docstring
docstrings
dunder
endianness
endpos
eventmask
excepthook
exceptiongroup
exitfuncs
extendleft
fastlocals
fdel
fedcba
fget
fileencoding
fillchar
fillvalue
finallyhandler
firstiter
firstlineno
fnctl
frombytes
fromhex
fromunicode
fset
fspath
fstring
fstrings
ftruncate
genexpr
getattro
getcodesize
getdefaultencoding
getfilesystemencodeerrors
getfilesystemencoding
getformat
getframe
getnewargs
getpip
getrandom
getrecursionlimit
getrefcount
getweakrefcount
getweakrefs
getwindowsversion
gmtoff
groupdict
groupindex
hamt
hostnames
idfunc
idiv
impls
indexgroup
infj
instancecheck
instanceof
irepeat
isabstractmethod
isbytes
iscased
istext
itemiterator
itemsize
iternext
keepends
keyfunc
keyiterator
kwarg
kwargs
kwdefaults
kwonlyargcount
lastgroup
linearization
linearize
listcomp
lvalue
mappingproxy
maskpri
maxdigits
MAXGROUPS
MAXREPEAT
maxsplit
maxunicode
memoryview
memoryviewiterator
metaclass
metaclasses
metatype
mformat
mro
mros
multiarch
namereplace
nanj
nbytes
ncallbacks
ndigits
ndim
nlocals
nonbytes
origname
posixsubprocess
posonly
posonlyargcount
profilefunc
pycodecs
pycs
pyexpat
pytraverse
PYTHONDEBUG
PYTHONHOME
PYTHONINSPECT
Expand All @@ -82,11 +155,19 @@ PYTHONPATH
PYTHONPATH
PYTHONVERBOSE
PYTHONWARNINGS
pytraverse
10000 qualname
quotetabs
radd
rdiv
rdivmod
readall
readbuffer
reconstructor
releaselevel
reverseitemiterator
reverseiterator
reversekeyiterator
reversevalueiterator
rfloordiv
rlshift
Expand All @@ -95,22 +176,42 @@ rpow
rrshift
rsub
rtruediv
rvalue
scproxy
setattro
setcomp
showwarnmsg
warnmsg
signum
slotnames
stacklevel
stacksize
startpos
subclasscheck
subclasshook
suboffset
sumprod
surrogateescape
surrogatepass
sysconfigdata
sysvars
titlecased
unimportable
unionable
unraisablehook
unsliceable
urandom
valueiterator
vararg
varargs
varnames
warningregistry
warnmsg
warnoptions
warnopts
weakproxy
winver
xopts
withdata
xmlcharrefreplace
xoptions
xopts
yieldfrom
25 changes: 24 additions & 1 deletion .cspell.dict/rust-more.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,68 @@ bidi
biguint
bindgen
bitflags
bitor
bstr
byteorder
byteset
caseless
chrono
consts
cranelift
cstring
datelike
deserializer
flate2
fract
getres
hasher
hexf
hexversion
idents
illumos
indexm 10000 ap
insta
keccak
lalrpop
lexopt
libc
libloading
libz
longlong
Manually
maplit
memmap
memmem
metas
modpow
msvc
muldiv
nanos
objclass
peekable
powc
powf
prepended
punct
puruspe
replacen
rsplitn
rustc
rustfmt
rustyline
seekfrom
siphash
splitn
subsec
thiserror
timelike
timsort
trai
ulonglong
unic
unistd
unsync
wasmbind
widestring
winapi
winsock
winsock
17 changes: 17 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,24 @@
// words - list of words to be always considered correct
"words": [
// RustPython
"aiterable",
"alnum",
"baseclass",
"boxvec",
"Bytecode",
"cfgs",
"codegen",
"coro",
"dedentations",
"dedents",
"deduped",
"downcasted",
"dumpable",
"emscripten",
"excs",
"finalizer",
"GetSet",
"groupref",
"internable",
"makeunicodedata",
"miri",
Expand Down Expand Up @@ -100,6 +108,15 @@
"unraisable",
"wasi",
"zelf",
// unix
"CLOEXEC",
"codeset",
"endgrent",
"getrusage",
"nanosleep",
"WRLCK",
// win32
"birthtime",
],
// flagWords - list of words to be always considered incorrect
"flagWords": [
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install extra dictionaries
run: npm install @cspell/dict-en_us @cspell/dict-cpp @cspell/dict-python @cspell/dict-rust @cspell/dict-win32 @cspell/dict-shell
- name: spell checker
uses: streetsidesoftware/cspell-action@v6
with:
files: '**/*.rs'
incremental_files_only: true
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
Expand All @@ -339,6 +332,14 @@ jobs:
- name: check wasm code with prettier
# prettier doesn't handle ignore files very well: https://github.com/prettier/prettier/issues/8506
run: cd wasm && git ls-files -z | xargs -0 prettier --check -u
# Keep cspell check as the last step. This is optional test.
- name: install extra dictionaries
run: npm install @cspell/dict-en_us @cspell/dict-cpp @cspell/dict-python @cspell/dict-rust @cspell/dict-win32 @cspell/dict-shell
- name: spell checker
uses: streetsidesoftware/cspell-action@v6
with:
files: '**/*.rs'
incremental_files_only: true

miri:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}
Expand Down
1 change: 1 addition & 0 deletions common/src/boxvec.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// cspell:ignore
//! An unresizable vector backed by a `Box<[T]>`

Check warning on line 2 in common/src/boxvec.rs

View workflow job for this annotation

GitHub Actions / Check Rust code with rustfmt and clippy

Unknown word (unresizable)

#![allow(clippy::needless_lifetimes)]

Expand Down Expand Up @@ -247,7 +248,7 @@

unsafe {
let dst = self.as_mut_ptr().add(self_len);
ptr::copy_nonoverlapping(other.as_ptr(), dst, other_len);

Check warning on line 251 in common/src/boxvec.rs

View workflow job for this annotation

GitHub Actions / Check Rust code with rustfmt and clippy

Unknown word (nonoverlapping)
self.set_len(self_len + other_len);
}
Ok(())
Expand Down
Loading
Loading
0