From 60c1f77288aa288978353d225ec42471d4208aba Mon Sep 17 00:00:00 2001 From: "Jeong, YunWon" <69878+youknowone@users.noreply.github.com> Date: Tue, 17 Mar 2026 20:18:31 +0900 Subject: [PATCH] update cspell config (#7452) * add allowCompoundWords * cspell dict --- .cspell.dict/rustpython.txt | 32 ++++++++++++++ .cspell.json | 83 ++++--------------------------------- 2 files changed, 41 insertions(+), 74 deletions(-) create mode 100644 .cspell.dict/rustpython.txt diff --git a/.cspell.dict/rustpython.txt b/.cspell.dict/rustpython.txt new file mode 100644 index 000000000..8cd083580 --- /dev/null +++ b/.cspell.dict/rustpython.txt @@ -0,0 +1,32 @@ +cfgs +miri +py +pyarg +pyargs +pyast +pyattr +pyclass +pyclassmethod +pyexception +pyfunction +pygetset +pyimpl +pylib +pymath +pymethod +pymodule +pyname +pyobj +pyobject +pypayload +pyref +pyslot +pystaticmethod +pystone +pystr +pystruct +pystructseq +pytype +rustix +struc +zelf diff --git a/.cspell.json b/.cspell.json index 07fe948c5..f6887a7bb 100644 --- a/.cspell.json +++ b/.cspell.json @@ -9,6 +9,7 @@ "@cspell/dict-win32/cspell-ext.json", "@cspell/dict-shell/cspell-ext.json", ], + "allowCompoundWords": true, // language - current active spelling language "language": "en", // dictionaries - list of the names of the dictionaries to use @@ -16,6 +17,7 @@ "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 + "rustpython", // RustPython derive macros and internal terms "en_US", "softwareTerms", "c", @@ -38,6 +40,10 @@ { "name": "rust-more", "path": "./.cspell.dict/rust-more.txt" + }, + { + "name": "rustpython", + "path": "./.cspell.dict/rustpython.txt" } ], "ignorePaths": [ @@ -46,112 +52,41 @@ "Lib/**" ], // words - list of words to be always considered correct + // (compound words like pyarg, baseclass, microbenchmark are handled by allowCompoundWords) "words": [ - "RUSTPYTHONPATH", - // RustPython terms "aiterable", "alnum", - "baseclass", - "boxvec", - "Bytecode", - "cfgs", - "codegen", "coro", "dedentations", "dedents", "deduped", "deoptimize", - "downcastable", - "downcasted", - "dumpable", "emscripten", "excs", - "finalizer", - "finalizers", - "GetSet", - "groupref", - "internable", "interps", "jitted", "jitting", "kwonly", "lossily", - "makeunicodedata", "mcache", - "microbenchmark", - "microbenchmarks", - "miri", - "notrace", "oparg", - "openat", - "pyarg", - "pyargs", - "pyast", - "PyAttr", "pyc", - "PyClass", - "PyClassMethod", - "PyException", - "PyFunction", - "pygetset", - "pyimpl", - "pylib", - "pymath", - "pymember", - "PyMethod", - "PyModule", - "pyname", - "pyobj", - "PyObject", - "pypayload", - "PyProperty", - "pyref", - "PyResult", - "pyslot", - "PyStaticMethod", - "pystone", - "pystr", - "pystruct", - "pystructseq", - "pytrace", - "pytype", - "reducelib", - "richcompare", - "rustix", - "RustPython", "significand", - "struc", - "summands", // plural of summand - "sysmodule", - "tracebacks", - "typealiases", - "typevartuples", - "uncollectable", - "unhashable", - "uninit", + "summands", "unraisable", - "unresizable", - "varint", "wasi", "weaked", - "zelf", // unix "posixshmem", "shm", "CLOEXEC", - "codeset", "endgrent", "gethrvtime", "getrusage", - "nanosleep", "sigaction", - "sighandler", "WRLCK", // win32 - "birthtime", - "IFEXEC", - // "stat" - "FIRMLINK", + "IFEXEC" ], // flagWords - list of words to be always considered incorrect "flagWords": [