8000 Fix cspell warning by youknowone · Pull Request #5890 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

Fix cspell warning #5890

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
Jul 3, 2025
Merged

Fix cspell warning #5890

merged 2 commits into from
Jul 3, 2025

Conversation

youknowone
Copy link
Member
@youknowone youknowone commented Jul 3, 2025

Summary by CodeRabbit

  • Style
    • Updated spell-checker directive comments throughout the codebase for consistency.
    • No changes to application logic, features, or functionality.

Copy link
Contributor
coderabbitai bot commented Jul 3, 2025

Walkthrough

This change updates spell-checking directive comments across numerous source files, replacing instances of cspell directives with the equivalent spell-checker directives. No code logic, functionality, or exported entities are altered; only comment annotations for controlling spell-checking tools are modified for consistency.

Changes

File(s) Change Summary
common/src/boxvec.rs, common/src/linked_list.rs, ... Updated top-of-file spell-check disabling comment from cspell:disable to spell-checker:disable.
common/src/format.rs, common/src/str.rs, ... Changed spell-check ignore directive from cspell:ignore ... to spell-checker:ignore ....
stdlib/src/tkinter.rs, stdlib/src/json/machinery.rs, ... Updated spell-check ignore directive for specific words.
stdlib/src/fcntl.rs, stdlib/src/grp.rs, ... Changed spell-check disabling comment at file top.
vm/src/builtins/genericalias.rs, vm/src/builtins/str.rs Updated spell-check ignore and disable-next-line comments for consistency.
vm/src/vm/setting.rs Changed spell-check ignore comments for struct fields.
common/src/lock/cell_lock.rs Added spell-check ignore comment for specific words.
All other listed files Only spell-checker directive in comments updated; no code or logic changes.

Poem

In every file, a gentle sweep,
The cspell bunnies take a leap—
Now spell-checker leads the way,
Keeping odd words at bay.
No code was harmed, no logic bent,
Just tidier comments—rabbit content!
🐇✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Clippy (1.86.0)
Updating git repository `https://github.com/youknowone/ferrilab`

error: failed to load source for dependency radium

Caused by:
Unable to update https://github.com/youknowone/ferrilab?branch=fix-nightly#4a301c3a

Caused by:
failed to create directory /usr/local/git/db/ferrilab-ed7d38936952b47e

Caused by:
Permission denied (os error 13)

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor
@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
vm/src/builtins/str.rs (2)

2266-2269: Nit: consider grouping consecutive spell-checker directives.

The two spell-checker:disable-next-line comments are fine, but you could collapse them into a single multi-line directive to reduce comment noise.


2284-2286: Same minor note on directive consolidation.

Optional clean-up: merge these adjacent spell-checker:disable-next-line comments for brevity.

📜 Review details

Configuration used: .coderabbit.yml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fffa735 and c87fb20.

📒 Files selected for processing (48)
  • common/src/boxvec.rs (1 hunks)
  • common/src/format.rs (1 hunks)
  • common/src/linked_list.rs (1 hunks)
  • common/src/lock/cell_lock.rs (1 hunks)
  • common/src/os.rs (1 hunks)
  • common/src/str.rs (1 hunks)
  • example_projects/frozen_stdlib/src/main.rs (1 hunks)
  • jit/src/instructions.rs (1 hunks)
  • src/lib.rs (1 hunks)
  • stdlib/build.rs (1 hunks)
  • stdlib/src/compression.rs (1 hunks)
  • stdlib/src/fcntl.rs (1 hunks)
  • stdlib/src/grp.rs (1 hunks)
  • stdlib/src/json/machinery.rs (1 hunks)
  • stdlib/src/locale.rs (1 hunks)
  • stdlib/src/mmap.rs (1 hunks)
  • stdlib/src/overlapped.rs (1 hunks)
  • stdlib/src/posixsubprocess.rs (1 hunks)
  • stdlib/src/resource.rs (1 hunks)
  • stdlib/src/select.rs (1 hunks)
  • stdlib/src/socket.rs (1 hunks)
  • stdlib/src/ssl.rs (1 hunks)
  • stdlib/src/termios.rs (1 hunks)
  • stdlib/src/tkinter.rs (1 hunks)
  • vm/src/builtins/genericalias.rs (2 hunks)
  • vm/src/builtins/str.rs (3 hunks)
  • vm/src/builtins/super.rs (1 hunks)
  • vm/src/bytes_inner.rs (1 hunks)
  • vm/src/stdlib/ctypes.rs (1 hunks)
  • vm/src/stdlib/ctypes/function.rs (1 hunks)
  • vm/src/stdlib/errno.rs (1 hunks)
  • vm/src/stdlib/marshal.rs (1 hunks)
  • vm/src/stdlib/msvcrt.rs (1 hunks)
  • vm/src/stdlib/nt.rs (1 hunks)
  • vm/src/stdlib/os.rs (1 hunks)
  • vm/src/stdlib/posix.rs (1 hunks)
  • vm/src/stdlib/posix_compat.rs (1 hunks)
  • vm/src/stdlib/pwd.rs (1 hunks)
  • vm/src/stdlib/signal.rs (1 hunks)
  • vm/src/stdlib/typevar.rs (1 hunks)
  • vm/src/stdlib/typing.rs (1 hunks)
  • vm/src/stdlib/winapi.rs (1 hunks)
  • vm/src/stdlib/winreg.rs (1 hunks)
  • vm/src/vm/setting.rs (1 hunks)
  • vm/sre_engine/tests/tests.rs (1 hunks)
  • wtf8/src/core_char.rs (1 hunks)
  • wtf8/src/core_str_count.rs (1 hunks)
  • wtf8/src/lib.rs (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.rs`: Follow the default rustfmt code style (`cargo fmt` to format) Always ...

**/*.rs: Follow the default rustfmt code style (cargo fmt to format)
Always run clippy to lint code (cargo clippy) before completing tasks. Fix any warnings or lints that are introduced by your changes
Follow Rust best practices for error handling and memory management
Use the macro system (pyclass, pymodule, pyfunction, etc.) when implementing Python functionality in Rust

📄 Source: CodeRabbit Inference Engine (.github/copilot-instructions.md)

List of files the instruction was applied to:

  • stdlib/build.rs
  • example_projects/frozen_stdlib/src/main.rs
  • common/src/linked_list.rs
  • common/src/str.rs
  • common/src/os.rs
  • vm/src/stdlib/winreg.rs
  • vm/sre_engine/tests/tests.rs
  • vm/src/stdlib/msvcrt.rs
  • stdlib/src/overlapped.rs
  • stdlib/src/termios.rs
  • stdlib/src/select.rs
  • stdlib/src/posixsubprocess.rs
  • vm/src/stdlib/ctypes.rs
  • stdlib/src/compression.rs
  • vm/src/stdlib/posix_compat.rs
  • common/src/boxvec.rs
  • vm/src/builtins/super.rs
  • vm/src/stdlib/winapi.rs
  • src/lib.rs
  • common/src/format.rs
  • wtf8/src/lib.rs
  • vm/src/stdlib/typevar.rs
  • jit/src/instructions.rs
  • stdlib/src/mmap.rs
  • stdlib/src/locale.rs
  • stdlib/src/fcntl.rs
  • vm/src/stdlib/signal.rs
  • vm/src/stdlib/os.rs
  • vm/src/bytes_inner.rs
  • vm/src/builtins/genericalias.rs
  • vm/src/stdlib/errno.rs
  • vm/src/stdlib/posix.rs
  • common/src/lock/cell_lock.rs
  • vm/src/builtins/str.rs
  • vm/src/stdlib/pwd.rs
  • stdlib/src/grp.rs
  • wtf8/src/core_char.rs
  • wtf8/src/core_str_count.rs
  • stdlib/src/resource.rs
  • vm/src/stdlib/typing.rs
  • stdlib/src/json/machinery.rs
  • vm/src/stdlib/nt.rs
  • vm/src/stdlib/ctypes/function.rs
  • vm/src/stdlib/marshal.rs
  • vm/src/vm/setting.rs
  • stdlib/src/socket.rs
  • stdlib/src/tkinter.rs
  • stdlib/src/ssl.rs
🧠 Learnings (30)
stdlib/build.rs (1)
Learnt from: arihant2math
PR: RustPython/RustPython#5790
File: build.rs:2-2
Timestamp: 2025-06-28T16:31:03.971Z
Learning: In Cargo build scripts (build.rs), the environment variable CARGO_CFG_TARGET_OS is guaranteed to exist and is automatically set by Cargo during the build process, making unwrap() safe to use when accessing this variable.
example_projects/frozen_stdlib/src/main.rs (2)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: When testing Python code, always use RustPython instead of the standard `python` command
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
common/src/linked_list.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory management
common/src/os.rs (3)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Always run clippy to lint code (`cargo clippy`) before completing tasks. Fix any warnings or lints that are introduced by your changes
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory management
Learnt from: arihant2math
PR: RustPython/RustPython#5790
File: build.rs:2-2
Timestamp: 2025-06-28T16:31:03.971Z
Learning: In Cargo build scripts (build.rs), the environment variable CARGO_CFG_TARGET_OS is guaranteed to exist and is automatically set by Cargo during the build process, making unwrap() safe to use when accessing this variable.
vm/src/stdlib/winreg.rs (2)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: When testing Python code, always use RustPython instead of the standard `python` command
vm/sre_engine/tests/tests.rs (4)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/test/**/*.py : Add a `# TODO: RUSTPYTHON` comment when modifications are made to tests in `Lib/test`
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/test/**/*.py : The only acceptable modifications to test files are: 1. Removing `@unittest.expectedFailure` decorators and the upper TODO comments when tests actually pass 2. Adding `@unittest.expectedFailure` decorators when tests cannot be fixed
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/test/**/*.py : NEVER comment out or delete any test code lines except for removing `@unittest.expectedFailure` decorators and upper TODO comments in test files
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Always run clippy to lint code (`cargo clippy`) before completing tasks. Fix any warnings or lints that are introduced by your changes
vm/src/stdlib/msvcrt.rs (2)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory management
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
stdlib/src/select.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
stdlib/src/posixsubprocess.rs (2)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/test/**/*.py : Add a `# TODO: RUSTPYTHON` comment when modifications are made to tests in `Lib/test`
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
vm/src/stdlib/ctypes.rs (2)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/test/**/*.py : Add a `# TODO: RUSTPYTHON` comment when modifications are made to tests in `Lib/test`
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory management
vm/src/stdlib/posix_compat.rs (6)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory 
8000
management
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/test/**/*.py : Add a `# TODO: RUSTPYTHON` comment when modifications are made to tests in `Lib/test`
Learnt from: moreal
PR: RustPython/RustPython#5847
File: vm/src/stdlib/stat.rs:547-567
Timestamp: 2025-06-27T14:47:28.810Z
Learning: In RustPython's stat module implementation, platform-specific constants like SF_SUPPORTED and SF_SYNTHETIC should be conditionally declared only for the platforms where they're available (e.g., macOS), following CPython's approach of optional declaration using #ifdef checks rather than providing fallback values for other platforms.
Learnt from: moreal
PR: RustPython/RustPython#5847
File: vm/src/stdlib/stat.rs:547-567
Timestamp: 2025-06-27T14:47:28.810Z
Learning: In RustPython's stat module implementation, platform-specific constants like SF_SUPPORTED and SF_SYNTHETIC should be conditionally declared only for the platforms where they're available (e.g., macOS), following CPython's approach of optional declaration rather than providing fallback values for other platforms.
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
Learnt from: arihant2math
PR: RustPython/RustPython#5790
File: build.rs:2-2
Timestamp: 2025-06-28T16:31:03.971Z
Learning: In Cargo build scripts (build.rs), the environment variable CARGO_CFG_TARGET_OS is guaranteed to exist and is automatically set by Cargo during the build process, making unwrap() safe to use when accessing this variable.
wtf8/src/lib.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Always run clippy to lint code (`cargo clippy`) before completing tasks. Fix any warnings or lints that are introduced by your changes
vm/src/stdlib/typevar.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
vm/src/stdlib/signal.rs (2)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: When testing Python code, always use RustPython instead of the standard `python` command
vm/src/stdlib/os.rs (2)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory management
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
vm/src/bytes_inner.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
vm/src/builtins/genericalias.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/test/**/*.py : Add a `# TODO: RUSTPYTHON` comment when modifications are made to tests in `Lib/test`
vm/src/stdlib/errno.rs (3)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory management
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: When testing Python code, always use RustPython instead of the standard `python` command
vm/src/stdlib/posix.rs (7)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/test/**/*.py : Add a `# TODO: RUSTPYTHON` comment when modifications are made to tests in `Lib/test`
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Always run clippy to lint code (`cargo clippy`) before completing tasks. Fix any warnings or lints that are introduced by your changes
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory management
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: When testing Python code, always use RustPython instead of the standard `python` command
Learnt from: moreal
PR: RustPython/RustPython#5847
File: vm/src/stdlib/stat.rs:547-567
Timestamp: 2025-06-27T14:47:28.810Z
Learning: In RustPython's stat module implementation, platform-specific constants like SF_SUPPORTED and SF_SYNTHETIC should be conditionally declared only for the platforms where they're available (e.g., macOS), following CPython's approach of optional declaration using #ifdef checks rather than providing fallback values for other platforms.
Learnt from: moreal
PR: RustPython/RustPython#5847
File: vm/src/stdlib/stat.rs:547-567
Timestamp: 2025-06-27T14:47:28.810Z
Learning: In RustPython's stat module implementation, platform-specific constants like SF_SUPPORTED and SF_SYNTHETIC should be conditionally declared only for the platforms where they're available (e.g., macOS), following CPython's approach of optional declaration rather than providing fallback values for other platforms.
common/src/lock/cell_lock.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory management
vm/src/builtins/str.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Always run clippy to lint code (`cargo clippy`) before completing tasks. Fix any warnings or lints that are introduced by your changes
stdlib/src/grp.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
stdlib/src/resource.rs (2)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory management
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
vm/src/stdlib/typing.rs (2)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory management
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
vm/src/stdlib/nt.rs (3)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Follow Rust best practices for error handling and memory management
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: When testing Python code, always use RustPython instead of the standard `python` command
vm/src/stdlib/ctypes/function.rs (3)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/test/**/*.py : Add a `# TODO: RUSTPYTHON` comment when modifications are made to tests in `Lib/test`
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: When testing Python code, always use RustPython instead of the standard `python` command
vm/src/stdlib/marshal.rs (2)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/test/**/*.py : Add a `# TODO: RUSTPYTHON` comment when modifications are made to tests in `Lib/test`
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
stdlib/src/socket.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
stdlib/src/tkinter.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/test/**/*.py : Add a `# TODO: RUSTPYTHON` comment when modifications are made to tests in `Lib/test`
stdlib/src/ssl.rs (1)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust
⏰ Context from checks skipped due to timeout of 90000ms (10)
  • GitHub Check: Check the WASM package and demo
  • GitHub Check: Ensure compilation on various targets
  • GitHub Check: Run snippets and cpython tests (windows-latest)
  • GitHub Check: Run snippets and cpython tests on wasm-wasi
  • GitHub Check: Run tests under miri
  • GitHub Check: Run snippets and cpython tests (ubuntu-latest)
  • GitHub Check: Check Rust code with rustfmt and clippy
  • GitHub Check: Run rust tests (ubuntu-latest)
  • GitHub Check: Run rust tests (windows-latest)
  • GitHub Check: Run rust tests (macos-latest)
🔇 Additional comments (49)
vm/src/stdlib/posix_compat.rs (1)

1-1: Comment directive update looks good

Switching to the unified // spell-checker:disable directive keeps tooling consistent and has no runtime impact.

common/src/lock/cell_lock.rs (1)

1-1: Consistent spell-checker directive

The new // spell-checker:ignore line is correct and doesn’t affect behavior. 👍

vm/src/stdlib/errno.rs (1)

1-1: No-op comment change acknowledged

Directive rename only; nothing else to review.

stdlib/src/locale.rs (1)

1-1: Comment renaming accepted

Maintains consistency across the codebase; no functional impact.

vm/src/stdlib/os.rs (1)

1-1: Directive rename OK

Matches the project-wide transition to spell-checker comments.

vm/src/stdlib/pwd.rs (1)

1-1: Directive renamed to spell-checker – looks good

Comment-only change, no effect on runtime or tooling.

stdlib/src/grp.rs (1)

1-1: Consistent spell-checker directive – LGTM
Matches the new repo convention; nothing else to address.

vm/src/stdlib/nt.rs (1)

1-1: Comment update only – approved

No functional code touched; clippy/fmt remain unaffected.

vm/src/stdlib/msvcrt.rs (1)

1-1: Spell-checker tag updated – OK

Purely cosmetic; nothing further.

vm/src/stdlib/winreg.rs (1)

1-1: Directive rename verified – fine

Aligns with project-wide change; no additional feedback.

common/src/format.rs (1)

1-1: Comment directive looks correct
The switch to // spell-checker:ignore is consistent with the codebase changes and has zero functional impact.

common/src/boxvec.rs (1)

1-1: No-op comment update acknowledged
Directive renamed as expected; nothing else to note.

stdlib/src/fcntl.rs (1)

1-1: Spelling directive aligned
Matches the new convention; implementation code untouched.

vm/src/stdlib/typevar.rs (1)

1-1: Header comment updated correctly
Change is purely cosmetic; no runtime effect.

vm/src/stdlib/typing.rs (1)

1-1: Consistent spell-checker header
Update is harmless and keeps tooling consistent.

wtf8/src/lib.rs (1)

1-1: Directive name updated – LGTM

Switching to spell-checker:disable aligns with the new convention and carries no runtime impact.

wtf8/src/core_str_count.rs (1)

1-1: Consistent spell-checker directive – looks good

Comment-only change; no further action required.

stdlib/src/compression.rs (1)

1-1: Comment update acknowledged

Spell-checker directive renamed; implementation unchanged.

vm/sre_engine/tests/tests.rs (1)

1-1: Directive rename accepted

Purely cosmetic change; tests remain unaffected.

vm/src/bytes_inner.rs (1)

1-1: Spell-checker directive updated – no issues

No functional code touched.

common/src/os.rs (1)

1-1: Consistent spell-check directive name

Header updated to // spell-checker:disable. No functional impact. LGTM.

wtf8/src/core_char.rs (1)

1-1: Consistent spell-check directive name

Comment switched to // spell-checker:disable. Change is purely cosmetic and correct.

common/src/linked_list.rs (1)

1-1: Consistent spell-check directive name

Standardised spell-checker directive; code untouched. Looks good.

common/src/str.rs (1)

1-1: Consistent spell-check directive name

Updated ignore directive to match new tooling; no other changes. ✔️

stdlib/build.rs (1)

1-1: Consistent spell-check directive name

Header comment corrected; build script logic unchanged. All good.

stdlib/src/ssl.rs (1)

1-1: Consistent spell-checker directive – no functional impact

The swap from // cspell:disable to // spell-checker:disable only touches tooling comments and doesn’t affect compilation or runtime behavior. Looks good.

vm/src/stdlib/posix.rs (1)

1-1: Consistent spell-checker directive adopted

Directive switched from cspell to spell-checker; matches the new project-wide convention. No functional impact.

stdlib/src/json/machinery.rs (1)

1-1: Updated comment only

Spell-checker directive renamed for consistency; nothing else changed.

stdlib/src/socket.rs (1)

1-1: Comment-only change acknowledged

Directive was switched to spell-checker:disable; no runtime impact.
LGTM.

vm/src/builtins/super.rs (1)

1-1: Comment-only change acknowledged

Updated to spell-checker:ignore cmeth; no functional impact.
LGTM.

stdlib/src/overlapped.rs (1)

1-1: Comment-only change acknowledged

Switched to spell-checker:disable; implementation remains intact.
LGTM.

vm/src/stdlib/winapi.rs (1)

1-1: Consistent spell-checker directive — looks good

Comment-only change; implementation untouched.

stdlib/src/posixsubprocess.rs (1)

1-1: Consistent spell-checker directive — looks good

Pure comment update; no functional impact.

stdlib/src/mmap.rs (1)

1-1: Consistent spell-checker directive — looks good

No code behaviour altered.

vm/src/stdlib/ctypes.rs (1)

1-1: Consistent spell-checker directive — looks good

Change is comment-only.

vm/src/stdlib/ctypes/function.rs (1)

1-1: Consistent spell-checker directive — looks good

Nothing beyond a comment tweak.

example_projects/frozen_stdlib/src/main.rs (1)

1-1: Updated spell-checker directive – looks good

Pure comment change; runtime behavior untouched.

jit/src/instructions.rs (1)

1-1: Spell-checker comment standardized – OK

No functional impact on the JIT compiler.

vm/src/stdlib/marshal.rs (1)

1-1: Consistent spell-checker tag – approved

Comment-only tweak; serialization logic unchanged.

stdlib/src/tkinter.rs (1)

1-1: Comment directive renamed – fine

No code modifications; Tkinter bindings unaffected.

vm/src/stdlib/signal.rs (1)

1-1: Directive switched to spell-checker – all good

Signal module behavior remains identical.

stdlib/src/termios.rs (1)

1-1: Spell-checker directive updated correctly

Only the comment was altered; no functional impact.

stdlib/src/resource.rs (1)

1-1: Consistent directive rename

Change is comment-only and aligns with the new convention.

stdlib/src/select.rs (1)

1-1: Comment update acknowledged

No runtime effect; change is fine.

src/lib.rs (1)

245-246: Directive rename looks good

Comment-level update; nothing else touched.

vm/src/vm/setting.rs (1)

39-45: Clean-up of spell-checker ignores

Both comment updates are correct and non-functional.

vm/src/builtins/str.rs (1)

580-583: Comment directive looks good – no functional impact.

The // spell-checker:ignore cmpxchg annotation is correct and does not affect code behaviour.

vm/src/builtins/genericalias.rs (2)

1-1: LGTM – comment directive updated.

The switch from cspell to spell-checker is correct.


593-595: No issues – comment update only.

The added ignore for gaiterobject is benign; underlying TODO remains unchanged.

@youknowone youknowone merged commit d40cbbb into RustPython:main Jul 3, 2025
12 checks passed
@youknowone youknowone deleted the cspell branch July 3, 2025 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0