Skip to content

Commit 2afd7e7

Browse files
committed
Sweep utils/python_script.rs
One tool_uv reader replaces three [tool.uv] chains, and one declares_directly replaces the three "is this a direct dependency" copies in hosted_override_pins, wires_through_override and the two metadata rewriters. push_hosted_override is inlined into its one caller and is_hosted_override is private. refuse_uv_no_sources / refuse_uv_no_binary lose their script parameter: every caller passed None (scripts use the *_script_* variants). The SourcesLayout doc is trimmed to its why, bare issue numbers are gone, and a unit test now covers no-binary's combine rules. Assisted-by: Claude Code:claude-opus-5-5
1 parent db9aa2b commit 2afd7e7

3 files changed

Lines changed: 124 additions & 152 deletions

File tree

‎crates/socket-patch-core/src/patch/redirect/mod.rs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6492,14 +6492,12 @@ fn plan_python_metadata_with(
64926492
} else {
64936493
crate::utils::python_script::refuse_uv_no_sources(
64946494
&dep.name,
6495-
None,
64966495
Some(&original),
64976496
project_file(crate::utils::python_script::UV_TOML),
64986497
)
64996498
.and_then(|()| {
65006499
crate::utils::python_script::refuse_uv_no_binary(
65016500
&dep.name,
6502-
None,
65036501
Some(&original),
65046502
project_file(crate::utils::python_script::UV_TOML),
65056503
)

0 commit comments

Comments
 (0)