Fix `pip list --exclude` making `--not-required` list dependencies #14130
All Vouch review confidence checks passed
Residual risk 0.02 = Change Risk (0.28) × (1 − Review Confidence (0.92)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.28 · 39 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.92 · 4 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.221
Real PR Conversation Timeline
7 items
Is expect_stderr=True needed here? The test passes without it as well. Unless there is a reason to keep, I think we can drop it. What do you think?
Approved
Hi @2ykwang, thanks for your contribution!
I've left a small nitpick on the test you added, but besides that LGTM from me.
Thanks again!
yeah, makes sense. thanks for catching this @sepehr-rs!
also, a few other pip list tests have the same expect_stderr=True, out of scope here, will look separately. @sepehr-rs
Yes, I noticed those as well. I think they can go in a separate cleanup PR. Thanks for checking, though!
Approved
Thank you!
sepehr-rs
2ykwang
<!---
Thank you for your soon to be pull request. Before you submit this, please
double check to make sure that you've added a news file fragment. In pip we
generate our NEWS.rst from multiple news fragment files, and all pull requests
require either a news file fragment or a marker to indicate they don't require
one.
To read more about adding a news file fragment for your PR, please check out
our documentation at: https://pip.pypa.io/en/latest/development/contributing/#news-entries
-->
Closes #14129.
Moved the
--excludefilter afterget_not_requiredso excluded packages no longer drop their dependencies into the top-level listing.