From 372e68306334adaeb0730b1b45a063714b1ec713 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Thu, 27 Mar 2025 01:43:45 +0900 Subject: [PATCH] disable cspell from files with a bunch of OS jargons --- .cspell.json | 1 + common/src/os.rs | 1 + stdlib/src/mmap.rs | 1 + stdlib/src/overlapped.rs | 2 ++ stdlib/src/posixsubprocess.rs | 2 ++ stdlib/src/resource.rs | 2 ++ stdlib/src/select.rs | 2 ++ stdlib/src/socket.rs | 2 ++ stdlib/src/ssl.rs | 2 ++ stdlib/src/termios.rs | 2 ++ vm/src/stdlib/ctypes.rs | 2 ++ vm/src/stdlib/ctypes/function.rs | 2 ++ vm/src/stdlib/errno.rs | 2 ++ vm/src/stdlib/msvcrt.rs | 2 ++ vm/src/stdlib/nt.rs | 2 ++ vm/src/stdlib/os.rs | 2 ++ vm/src/stdlib/posix.rs | 2 ++ vm/src/stdlib/posix_compat.rs | 2 ++ vm/src/stdlib/pwd.rs | 2 ++ vm/src/stdlib/signal.rs | 2 ++ vm/src/stdlib/winapi.rs | 2 ++ vm/src/stdlib/winreg.rs | 1 + 22 files changed, 40 insertions(+) diff --git a/.cspell.json b/.cspell.json index c1db1036a..0d7df1a6b 100644 --- a/.cspell.json +++ b/.cspell.json @@ -187,6 +187,7 @@ "warningregistry", "warnopts", "weakproxy", + "winver", "xopts", // RustPython "baseclass", diff --git a/common/src/os.rs b/common/src/os.rs index 8a832270b..06ea1432e 100644 --- a/common/src/os.rs +++ b/common/src/os.rs @@ -1,3 +1,4 @@ +// cspell:disable // TODO: we can move more os-specific bindings/interfaces from stdlib::{os, posix, nt} to here use std::{io, str::Utf8Error}; diff --git a/stdlib/src/mmap.rs b/stdlib/src/mmap.rs index cbc86bb2c..c56369e97 100644 --- a/stdlib/src/mmap.rs +++ b/stdlib/src/mmap.rs @@ -1,3 +1,4 @@ +// cspell:disable //! mmap module pub(crate) use mmap::make_module; diff --git a/stdlib/src/overlapped.rs b/stdlib/src/overlapped.rs index 629461abe..007fa6742 100644 --- a/stdlib/src/overlapped.rs +++ b/stdlib/src/overlapped.rs @@ -1,3 +1,5 @@ +// cspell:disable + pub(crate) use _overlapped::make_module; #[allow(non_snake_case)] diff --git a/stdlib/src/posixsubprocess.rs b/stdlib/src/posixsubprocess.rs index 595caf524..346032fe7 100644 --- a/stdlib/src/posixsubprocess.rs +++ b/stdlib/src/posixsubprocess.rs @@ -1,3 +1,5 @@ +// cspell:disable + use crate::vm::{ builtins::PyListRef, function::ArgSequence, diff --git a/stdlib/src/resource.rs b/stdlib/src/resource.rs index e103cce77..3255bb3f6 100644 --- a/stdlib/src/resource.rs +++ b/stdlib/src/resource.rs @@ -1,3 +1,5 @@ +// cspell:disable + pub(crate) use resource::make_module; #[pymodule] diff --git a/stdlib/src/select.rs b/stdlib/src/select.rs index 4003856bb..d4380b69f 100644 --- a/stdlib/src/select.rs +++ b/stdlib/src/select.rs @@ -1,3 +1,5 @@ +// cspell:disable + use crate::vm::{ PyObject, PyObjectRef, PyRef, PyResult, TryFromObject, VirtualMachine, builtins::PyListRef, builtins::PyModule, diff --git a/stdlib/src/socket.rs b/stdlib/src/socket.rs index 17daec775..988784856 100644 --- a/stdlib/src/socket.rs +++ b/stdlib/src/socket.rs @@ -1,3 +1,5 @@ +// cspell:disable + use crate::vm::{PyRef, VirtualMachine, builtins::PyModule}; #[cfg(feature = "ssl")] pub(super) use _socket::{PySocket, SelectKind, sock_select, timeout_error_msg}; diff --git a/stdlib/src/ssl.rs b/stdlib/src/ssl.rs index 10d190644..c1dcea354 100644 --- a/stdlib/src/ssl.rs +++ b/stdlib/src/ssl.rs @@ -1,3 +1,5 @@ +// cspell:disable + use crate::vm::{PyRef, VirtualMachine, builtins::PyModule}; use openssl_probe::ProbeResult; diff --git a/stdlib/src/termios.rs b/stdlib/src/termios.rs index 5c49d62a3..55cd45e65 100644 --- a/stdlib/src/termios.rs +++ b/stdlib/src/termios.rs @@ -1,3 +1,5 @@ +// cspell:disable + pub(crate) use self::termios::make_module; #[pymodule] diff --git a/vm/src/stdlib/ctypes.rs b/vm/src/stdlib/ctypes.rs index b6fd15088..38955fe39 100644 --- a/vm/src/stdlib/ctypes.rs +++ b/vm/src/stdlib/ctypes.rs @@ -1,3 +1,5 @@ +// cspell:disable + pub(crate) mod array; pub(crate) mod base; pub(crate) mod function; diff --git a/vm/src/stdlib/ctypes/function.rs b/vm/src/stdlib/ctypes/function.rs index c1c1230e0..21043da27 100644 --- a/vm/src/stdlib/ctypes/function.rs +++ b/vm/src/stdlib/ctypes/function.rs @@ -1,3 +1,5 @@ +// cspell:disable + use crate::builtins::{PyStr, PyTupleRef, PyTypeRef}; use crate::convert::ToPyObject; use crate::function::FuncArgs; diff --git a/vm/src/stdlib/errno.rs b/vm/src/stdlib/errno.rs index 247e2a234..c77fcbfef 100644 --- a/vm/src/stdlib/errno.rs +++ b/vm/src/stdlib/errno.rs @@ -1,3 +1,5 @@ +// cspell:disable + use crate::{PyRef, VirtualMachine, builtins::PyModule}; #[pymodule] diff --git a/vm/src/stdlib/msvcrt.rs b/vm/src/stdlib/msvcrt.rs index 7b3620ad5..463f4566a 100644 --- a/vm/src/stdlib/msvcrt.rs +++ b/vm/src/stdlib/msvcrt.rs @@ -1,3 +1,5 @@ +// cspell:disable + pub use msvcrt::*; #[pymodule] diff --git a/vm/src/stdlib/nt.rs b/vm/src/stdlib/nt.rs index 624577b5c..b4899bb22 100644 --- a/vm/src/stdlib/nt.rs +++ b/vm/src/stdlib/nt.rs @@ -1,3 +1,5 @@ +// cspell:disable + use crate::{PyRef, VirtualMachine, builtins::PyModule}; pub use module::raw_set_handle_inheritable; diff --git a/vm/src/stdlib/os.rs b/vm/src/stdlib/os.rs index e1a5825b8..f53be8b01 100644 --- a/vm/src/stdlib/os.rs +++ b/vm/src/stdlib/os.rs @@ -1,3 +1,5 @@ +// cspell:disable + use crate::{ AsObject, Py, PyPayload, PyResult, VirtualMachine, builtins::{PyBaseExceptionRef, PyModule, PySet}, diff --git a/vm/src/stdlib/posix.rs b/vm/src/stdlib/posix.rs index 05b1d8add..dc5c74cef 100644 --- a/vm/src/stdlib/posix.rs +++ b/vm/src/stdlib/posix.rs @@ -1,3 +1,5 @@ +// cspell:disable + use crate::{PyRef, VirtualMachine, builtins::PyModule}; use std::os::unix::io::RawFd; diff --git a/vm/src/stdlib/posix_compat.rs b/vm/src/stdlib/posix_compat.rs index 334aa597c..696daf7f0 100644 --- a/vm/src/stdlib/posix_compat.rs +++ b/vm/src/stdlib/posix_compat.rs @@ -1,3 +1,5 @@ +// cspell:disable + //! `posix` compatible module for `not(any(unix, windows))` use crate::{PyRef, VirtualMachine, builtins::PyModule}; diff --git a/vm/src/stdlib/pwd.rs b/vm/src/stdlib/pwd.rs index f6c277242..b95910c73 100644 --- a/vm/src/stdlib/pwd.rs +++ b/vm/src/stdlib/pwd.rs @@ -1,3 +1,5 @@ +// cspell:disable + pub(crate) use pwd::make_module; #[pymodule] diff --git a/vm/src/stdlib/signal.rs b/vm/src/stdlib/signal.rs index 0c47ca082..cdd8d8c3b 100644 --- a/vm/src/stdlib/signal.rs +++ b/vm/src/stdlib/signal.rs @@ -1,3 +1,5 @@ +// cspell:disable + use crate::{PyRef, VirtualMachine, builtins::PyModule}; pub(crate) fn make_module(vm: &VirtualMachine) -> PyRef { diff --git a/vm/src/stdlib/winapi.rs b/vm/src/stdlib/winapi.rs index 7ffc4227e..2d853f4ed 100644 --- a/vm/src/stdlib/winapi.rs +++ b/vm/src/stdlib/winapi.rs @@ -1,3 +1,5 @@ +// cspell:disable + #![allow(non_snake_case)] pub(crate) use _winapi::make_module; diff --git a/vm/src/stdlib/winreg.rs b/vm/src/stdlib/winreg.rs index b0dbbfcee..30fe01614 100644 --- a/vm/src/stdlib/winreg.rs +++ b/vm/src/stdlib/winreg.rs @@ -1,3 +1,4 @@ +// cspell:disable #![allow(non_snake_case)] use crate::{PyRef, VirtualMachine, builtins::PyModule};