rework dicts

This commit is contained in:
Jeong YunWon committed 2025-03-27 02:15:03 +09:00
1 parent 372e683063
commit 10d2837041
4 files changed
+231 -212

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
argtypes
asdl
asname
augassign
badsyntax
basetype
boolop
bxor
cellarg
cellvar
cellvars
cmpop
dictoffset
elts
excepthandler
finalbody
freevar
freevars
fromlist
heaptype
IMMUTABLETYPE
kwonlyarg
kwonlyargs
linearise
maxdepth
mult
nkwargs
orelse
patma
posonlyarg
posonlyargs
prec
stackdepth
unaryop
unparse
unparser
VARKEYWORDS
varkwarg
wbits
withitem
withs
+116
View File
@@ -0,0 +1,116 @@
abstractmethods
aiter
anext
arrayiterator
arraytype
asend
athrow
basicsize
cformat
classcell
closesocket
codepoint
codepoints
cpython
decompressor
defaultaction
descr
dictcomp
dictitems
dictkeys
dictview
docstring
docstrings
dunder
eventmask
fdel
fget
fileencoding
fillchar
finallyhandler
frombytes
fromhex
fromunicode
fset
fspath
fstring
fstrings
genexpr
getattro
getformat
getnewargs
getweakrefcount
getweakrefs
hostnames
idiv
impls
infj
instancecheck
instanceof
isabstractmethod
itemiterator
itemsize
iternext
keyiterator
kwarg
kwargs
linearization
linearize
listcomp
mappingproxy
maxsplit
memoryview
memoryviewiterator
metaclass
metaclasses
metatype
mro
mros
nanj
ndigits
ndim
nonbytes
origname
posixsubprocess
pyexpat
pytraverse
PYTHONDEBUG
PYTHONHOME
PYTHONINSPECT
PYTHONOPTIMIZE
PYTHONPATH
PYTHONPATH
PYTHONVERBOSE
PYTHONWARNINGS
qualname
radd
rdiv
rdivmod
reconstructor
reversevalueiterator
rfloordiv
rlshift
rmod
rpow
rrshift
rsub
rtruediv
scproxy
setattro
setcomp
showwarnmsg
warnmsg
stacklevel
subclasscheck
subclasshook
unionable
unraisablehook
valueiterator
vararg
varargs
varnames
warningregistry
warnopts
weakproxy
winver
xopts
+47
View File
@@ -0,0 +1,47 @@
ahash
bidi
biguint
bindgen
bitflags
bstr
byteorder
chrono
consts
cstring
flate2
fract
hasher
idents
indexmap
insta
keccak
lalrpop
libc
libz
longlong
Manually
maplit
memmap
metas
modpow
nanos
objclass
peekable
powc
powf
prepended
punct
replacen
rsplitn
rustc
rustfmt
seekfrom
splitn
subsec
timsort
trai
ulonglong
unic
unistd
winapi
winsock
+27 -212
View File
@@ -1,194 +1,51 @@
// See: https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell
{
"version": "0.2",
"import": [
"@cspell/dict-en_us/cspell-ext.json",
// "@cspell/dict-cpp/cspell-ext.json",
"@cspell/dict-python/cspell-ext.json",
"@cspell/dict-rust/cspell-ext.json",
"@cspell/dict-win32/cspell-ext.json",
"@cspell/dict-shell/cspell-ext.json",
],
// language - current active spelling language
"language": "en",
// dictionaries - list of the names of the dictionaries to use
"dictionaries": [
"cpython", // Sometimes keeping same terms with cpython is easy
"python-more", // Python API terms not listed in python
"rust-more", // Rust API terms not listed in rust
"en_US",
"softwareTerms",
"c",
"cpp",
"python",
"python-custom",
"rust",
"unix",
"posix",
"winapi"
"shell",
"win32"
],
// dictionaryDefinitions - this list defines any custom dictionaries to use
"dictionaryDefinitions": [],
"dictionaryDefinitions": [
{
"name": "cpython",
"path": "./.cspell.dict/cpython.txt"
},
{
"name": "python-more",
"path": "./.cspell.dict/python-more.txt"
},
{
"name": "rust-more",
"path": "./.cspell.dict/rust-more.txt"
}
],
"ignorePaths": [
"**/__pycache__/**",
"Lib/**"
],
// words - list of words to be always considered correct
"words": [
// Rust
"ahash",
"bidi",
"biguint",
"bindgen",
"bitflags",
"bstr",
"byteorder",
"chrono",
"consts",
"cstring",
"flate2",
"fract",
"hasher",
"idents",
"indexmap",
"insta",
"keccak",
"lalrpop",
"libc",
"libz",
"longlong",
"Manually",
"maplit",
"memmap",
"metas",
"modpow",
"nanos",
"objclass",
"peekable",
"powc",
"powf",
"prepended",
"punct",
"replacen",
"rsplitn",
"rustc",
"rustfmt",
"seekfrom",
"splitn",
"subsec",
"timsort",
"trai",
"ulonglong",
"unic",
"unistd",
"winapi",
"winsock",
// Python
"abstractmethods",
"aiter",
"anext",
"arrayiterator",
"arraytype",
"asend",
"athrow",
"basicsize",
"cformat",
"classcell",
"closesocket",
"codepoint",
"codepoints",
"cpython",
"decompressor",
"defaultaction",
"descr",
"dictcomp",
"dictitems",
"dictkeys",
"dictview",
"docstring",
"docstrings",
"dunder",
"eventmask",
"fdel",
"fget",
"fileencoding",
"fillchar",
"finallyhandler",
"frombytes",
"fromhex",
"fromunicode",
"fset",
"fspath",
"fstring",
"fstrings",
"genexpr",
"getattro",
"getformat",
"getnewargs",
"getweakrefcount",
"getweakrefs",
"hostnames",
"idiv",
"impls",
"infj",
"instancecheck",
"instanceof",
"isabstractmethod",
"itemiterator",
"itemsize",
"iternext",
"keyiterator",
"kwarg",
"kwargs",
"linearization",
"linearize",
"listcomp",
"mappingproxy",
"maxsplit",
"memoryview",
"memoryviewiterator",
"metaclass",
"metaclasses",
"metatype",
"mro",
"mros",
"nanj",
"ndigits",
"ndim",
"nonbytes",
"origname",
"posixsubprocess",
"pyexpat",
"pytraverse",
"PYTHONDEBUG",
"PYTHONHOME",
"PYTHONINSPECT",
"PYTHONOPTIMIZE",
"PYTHONPATH",
"PYTHONPATH",
"PYTHONVERBOSE",
"PYTHONWARNINGS",
"qualname",
"radd",
"rdiv",
"rdivmod",
"reconstructor",
"reversevalueiterator",
"rfloordiv",
"rlshift",
"rmod",
"rpow",
"rrshift",
"rsub",
"rtruediv",
"scproxy",
"setattro",
"setcomp",
"showwarnmsg",
"warnmsg",
"stacklevel",
"subclasscheck",
"subclasshook",
"unionable",
"unraisablehook",
"valueiterator",
"vararg",
"varargs",
"varnames",
"warningregistry",
"warnopts",
"weakproxy",
"winver",
"xopts",
// RustPython
"baseclass",
"Bytecode",
@@ -243,48 +100,6 @@
"unraisable",
"wasi",
"zelf",
// cpython
"argtypes",
"asdl",
"asname",
"augassign",
"badsyntax",
"basetype",
"boolop",
"bxor",
"cellarg",
"cellvar",
"cellvars",
"cmpop",
"dictoffset",
"elts",
"excepthandler",
"finalbody",
"freevar",
"freevars",
"fromlist",
"heaptype",
"IMMUTABLETYPE",
"kwonlyarg",
"kwonlyargs",
"linearise",
"maxdepth",
"mult",
"nkwargs",
"orelse",
"patma",
"posonlyarg",
"posonlyargs",
"prec",
"stackdepth",
"unaryop",
"unparse",
"unparser",
"VARKEYWORDS",
"varkwarg",
"wbits",
"withitem",
"withs"
],
// flagWords - list of words to be always considered incorrect
"flagWords": [