fix(shell): parse uv run --extra values

This commit is contained in:
David Andrews (LexGenius.ai)
2026-07-16 08:39:37 -04:00
parent 6ae7cdbf97
commit 5cb9533436
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -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 \
+4
View File
@@ -2,6 +2,10 @@
## [Unreleased]
### Fixed
- Fixed `uv run --extra <package> pytest ...` bypassing native pytest minimization because the wrapper parser mistook the `--extra` value for the executable.
## [17.0.1] - 2026-07-16
### Fixed