From 10d2837041a721e97ad86a129195cc0d36335d2e Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Thu, 27 Mar 2025 02:15:03 +0900 Subject: [PATCH] rework dicts --- .cspell.dict/cpython.txt | 41 ++++++ .cspell.dict/python-more.txt | 116 +++++++++++++++++ .cspell.dict/rust-more.txt | 47 +++++++ .cspell.json | 239 ++++------------------------------- 4 files changed, 231 insertions(+), 212 deletions(-) create mode 100644 .cspell.dict/cpython.txt create mode 100644 .cspell.dict/python-more.txt create mode 100644 .cspell.dict/rust-more.txt diff --git a/.cspell.dict/cpython.txt b/.cspell.dict/cpython.txt new file mode 100644 index 000000000..0ac387634 --- /dev/null +++ b/.cspell.dict/cpython.txt @@ -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 \ No newline at end of file diff --git a/.cspell.dict/python-more.txt b/.cspell.dict/python-more.txt new file mode 100644 index 000000000..a482c880c --- /dev/null +++ b/.cspell.dict/python-more.txt @@ -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 \ No newline at end of file diff --git a/.cspell.dict/rust-more.txt b/.cspell.dict/rust-more.txt new file mode 100644 index 000000000..f2177dd4c --- /dev/null +++ b/.cspell.dict/rust-more.txt @@ -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 \ No newline at end of file diff --git a/.cspell.json b/.cspell.json index 0d7df1a6b..562b300ff 100644 --- a/.cspell.json +++ b/.cspell.json @@ -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": [