diff --git a/crates/uv/src/commands/pip/tree.rs b/crates/uv/src/commands/pip/tree.rs index 481dde5ef..39193b940 100644 --- a/crates/uv/src/commands/pip/tree.rs +++ b/crates/uv/src/commands/pip/tree.rs @@ -50,9 +50,8 @@ pub(crate) fn pip_tree( if rendered_tree.contains('*') { writeln!( printer.stdout(), - r#"{}: (*) indicates the package has been `de-duplicated`. -The dependencies for the package have already been shown elsewhere in the graph, and so are not repeated."#, - "Note".yellow().bold() + "{}", + "(*) Package tree already displayed".italic() )?; } diff --git a/crates/uv/tests/pip_tree.rs b/crates/uv/tests/pip_tree.rs index 2ae3e0688..a8d076f8f 100644 --- a/crates/uv/tests/pip_tree.rs +++ b/crates/uv/tests/pip_tree.rs @@ -150,11 +150,9 @@ fn nested_dependencies() { │ └── numpy v1.26.4 (*) ├── joblib v1.3.2 └── threadpoolctl v3.4.0 - Note: (*) indicates the package has been `de-duplicated`. - The dependencies for the package have already been shown elsewhere in the graph, and so are not repeated. + (*) Package tree already displayed ----- stderr ----- - "### ); } @@ -261,8 +259,7 @@ fn nested_dependencies_more_complex() { ├── markdown-it-py v3.0.0 │ └── mdurl v0.1.2 └── pygments v2.17.2 (*) - Note: (*) indicates the package has been `de-duplicated`. - The dependencies for the package have already been shown elsewhere in the graph, and so are not repeated. + (*) Package tree already displayed ----- stderr ----- "### @@ -332,11 +329,9 @@ fn cyclic_dependency() { └── uv-cyclic-dependencies-a v0.1.0 └── uv-cyclic-dependencies-b v0.1.0 └── uv-cyclic-dependencies-a v0.1.0 (*) - Note: (*) indicates the package has been `de-duplicated`. - The dependencies for the package have already been shown elsewhere in the graph, and so are not repeated. + (*) Package tree already displayed ----- stderr ----- - "### ); } @@ -539,8 +534,7 @@ fn multiple_packages_shared_descendant() { time-machine v2.14.1 └── python-dateutil v2.9.0.post0 (*) urllib3 v2.2.1 - Note: (*) indicates the package has been `de-duplicated`. - The dependencies for the package have already been shown elsewhere in the graph, and so are not repeated. + (*) Package tree already displayed ----- stderr ----- "###