Skip to content

Conversation

@ShaharNaveh
Copy link
Collaborator

@ShaharNaveh ShaharNaveh commented Nov 14, 2025

ref: #6214

Summary by CodeRabbit

  • Chores
    • Reorganized internal project structure to streamline workspace configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 14, 2025

Walkthrough

The literal crate is relocated from the compiler directory to the crates directory. Workspace member declarations and dependency path references in Cargo.toml are updated to reflect this new location.

Changes

Cohort / File(s) Summary
Crate relocation
Cargo.toml
Removed compiler/literal from workspace members and added crates/literal. Updated rustpython-literal workspace dependency path from compiler/literal to crates/literal.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

  • Configuration-only change affecting a single manifest file
  • Straightforward path updates with no logic modifications or new features

Poem

🐰 The literal crate hops along,
From compiler to crates it belongs,
A simple move, clean and bright,
Paths updated, all feels right! ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the main change: moving the literal crate from compiler/ to crates/ directory.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 609d99f and d92303b.

📒 Files selected for processing (1)
  • Cargo.toml (1 hunks)
🔇 Additional comments (2)
Cargo.toml (2)

121-139: Workspace glob pattern correctly includes the relocated crate.

The glob pattern "crates/*" successfully matches crates/literal and will automatically discover it as a workspace member, consistent with how crates/doc is handled. The workspace configuration is correct.


157-157: Migration of compiler/literalcrates/literal verified as complete.

The workspace dependency path at line 157 has been correctly updated to { path = "crates/literal", version = "0.4.0" }. Verification confirms:

  • crates/literal directory exists with valid Cargo.toml
  • ✓ Workspace glob pattern "crates/*" automatically includes the new crate
  • ✓ No stale references to the old compiler/literal path remain
  • ✓ Follows existing project conventions for crates in the crates/ directory

No further action needed.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@ShaharNaveh ShaharNaveh changed the title Move compiler/literal -> crates/compiler-literal Move compiler/literal -> crates/literal Nov 14, 2025
@fanninpm
Copy link
Contributor

@coderabbitai review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 14, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ShaharNaveh
Copy link
Collaborator Author

the PR auto-format is reporting issue although everything passes. I ain't so sure what's the added value of it.

@fanninpm
Copy link
Contributor

the PR auto-format is reporting issue although everything passes. I ain't so sure what's the added value of it.

One of the tests on Windows was failing, so I re-ran it. Ideally, the auto-format check should run first (before all the other checks even get a chance to run), so that's something for @YashSuthar983 to keep in mind.

@ShaharNaveh
Copy link
Collaborator Author

ShaharNaveh commented Nov 14, 2025

the PR auto-format is reporting issue although everything passes. I ain't so sure what's the added value of it.

One of the tests on Windows was failing, so I re-ran it.

TY:)
I was wondering how it's marked as OK now. I don't have permissions to re-run a single workflow:/

Ideally, the auto-format check should run first (before all the other checks even get a chance to run), so that's something for @YashSuthar983 to keep in mind.

What's the added value of formatting things via the CI? why not enforce it like we did it until now?

@YashSuthar983
Copy link
Contributor

@fanninpm as I discussed with @youknowone ,we decided that auto formatting should run after all checks passes as if we do before we would have a auto format commit with skip ci and there will be some extra commits too if ci fails after auto format.

So in current implementation auto format waits for all CI to pass and there is timeout , there it every 30 checks if ci passes or not .

@youknowone
Copy link
Member

we decided that auto formatting should run after all checks passes

Ideally formatting before CI will be better. Because CI passes after formatting is more complete. If no choice, this is better than nothing

why not enforce it like we did it until now?

Auto-formatting is a higher level policy than enforce by policy. User always must format code, which is automatic task run by a command. Then why it shouldn't be automatic? That's one of the major purpose of programming and software.

@youknowone
Copy link
Member

Please leave more discussion to #6204

@youknowone youknowone merged commit 2071fa2 into RustPython:main Nov 14, 2025
23 of 25 checks passed
@ShaharNaveh
Copy link
Collaborator Author

we decided that auto formatting should run after all checks passes

Ideally formatting before CI will be better. Because CI passes after formatting is more complete. If no choice, this is better than nothing

Agree

why not enforce it like we did it until now?

Auto-formatting is a higher level policy than enforce by policy. User always must format code, which is automatic task run by a command. Then why it shouldn't be automatic? That's one of the major purpose of programming and software.

In some way I agree, but I think it makes things more complicated than it needs to be. IMO CI needs to validate things. There's pre-commit hooks to make it easier for developers

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.

4 participants