diff --git a/crates/pi-shell/src/minimizer/filters/mod.rs b/crates/pi-shell/src/minimizer/filters/mod.rs index d68963a89..3a0e21489 100644 --- a/crates/pi-shell/src/minimizer/filters/mod.rs +++ b/crates/pi-shell/src/minimizer/filters/mod.rs @@ -376,6 +376,7 @@ fn uv_wrapper_tool<'a>(ctx: &'a MinimizerCtx<'_>) -> Option<&'a str> { /// is already a single flag token and needs no entry here. const WRAPPER_VALUE_OPTIONS: &[&str] = &[ // uv run + "--extra", "--with", "--with-requirements", "--with-editable", @@ -633,7 +634,7 @@ mod tests { #[test] fn uv_run_pytest_routes_to_python_filter() { let config = MinimizerConfig::default(); - let context = ctx("uv", Some("run"), "uv run pytest", &config); + let context = ctx("uv", Some("run"), "uv run --extra turso pytest", &config); let input = "============================= test session starts \ ==============================\ncollected 2 items\n\na.py .\nb.py \ F\n\n=================================== FAILURES \ diff --git a/packages/natives/CHANGELOG.md b/packages/natives/CHANGELOG.md index 4e517c278..bf7f6a025 100644 --- a/packages/natives/CHANGELOG.md +++ b/packages/natives/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Fixed + +- Fixed `uv run --extra pytest ...` bypassing native pytest minimization because the wrapper parser mistook the `--extra` value for the executable. + ## [17.0.1] - 2026-07-16 ### Fixed