GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||
GeezerVison is showing github.com — Ruff fork by youknowone · Pull Request #7532 · RustPython/RustPython Conversation
|
📝 WalkthroughWalkthroughWorkspace dependency sources in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@Cargo.toml`:
- Around line 165-170: The comment in Cargo.toml incorrectly claims
reproducibility via a commit hash while the active dependencies (e.g.,
ruff_python_parser, ruff_python_ast, ruff_text_size, ruff_source_file) are
pinned by tag (tag = "0.15.8-rustpython"); update the file by either adding
explicit rev = "<commit-hash>" entries for those dependencies to truly pin them
to the referenced commit, or change the comment to state that reproducibility
relies on Cargo.lock resolving the tag (and remove the misleading commit-hash
claim); ensure the chosen approach is applied consistently for the referenced
dependency entries and that the comment matches the actual pinning method.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
Run ID: 64a18113-676a-41c2-b4e6-ed0a3868e14d
Cargo.lock is excluded by !**/*.lockCargo.toml
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cargo.toml (1)
161-164:version = "0.15.8"uses caret constraint semantics, not an exact pin.Lines 161–164 specify
version = "0.15.8", which Cargo treats as^0.15.8, allowing any patch version0.15.x. WhileCargo.lockensures reproducible builds by recording the exact resolved version (0.15.8), usingversion = "=0.15.8"would make the intent explicit in the manifest and provide clearer documentation for strict versioning on these forked ruff crates.Suggested improvement
-ruff_python_parser = { package = "rustpython-ruff_python_parser", version = "0.15.8" } -ruff_python_ast = { package = "rustpython-ruff_python_ast", version = "0.15.8" } -ruff_text_size = { package = "rustpython-ruff_text_size", version = "0.15.8" } -ruff_source_file = { package = "rustpython-ruff_source_file", version = "0.15.8" } +ruff_python_parser = { package = "rustpython-ruff_python_parser", version = "=0.15.8" } +ruff_python_ast = { package = "rustpython-ruff_python_ast", version = "=0.15.8" } +ruff_text_size = { package = "rustpython-ruff_text_size", version = "=0.15.8" } +ruff_source_file = { package = "rustpython-ruff_source_file", version = "=0.15.8" }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@Cargo.toml` around lines 161 - 164, The Cargo.toml entries for the four rustpython forked crates (ruff_python_parser, ruff_python_ast, ruff_text_size, ruff_source_file) currently use version = "0.15.8" which Cargo treats as a caret range; change each to an exact pin by replacing version = "0.15.8" with version = "=0.15.8" for ruff_python_parser, ruff_python_ast, ruff_text_size and ruff_source_file so the manifest clearly documents the intent to lock to that exact release.
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@Cargo.toml`:
- Around line 161-164: The Cargo.toml entries for the four rustpython forked
crates (ruff_python_parser, ruff_python_ast, ruff_text_size, ruff_source_file)
currently use version = "0.15.8" which Cargo treats as a caret range; change
each to an exact pin by replacing version = "0.15.8" with version = "=0.15.8"
for ruff_python_parser, ruff_python_ast, ruff_text_size and ruff_source_file so
the manifest clearly documents the intent to lock to that exact release.
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
Run ID: acc4008d-8b86-4c35-b88d-3ca9346aa8c2
Cargo.lock is excluded by !**/*.lockCargo.toml
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Replace git references to astral-sh/ruff with the rustpython-ruff_* crates published to crates.io by the RustPython project (v0.15.8). This eliminates the git dependency while keeping the same parser version. See: RustPython/RustPython#7532 Signed-off-by: Mark <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.