← Back to Pull requests

Apply command line options with --resolve-all-configs #2769

Open
unknown opened this pull request with 191 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 28, 2026 17:56 UTC
Author

With --resolve-all-configs, each file's config is built only from its nearest config file, so options given on the command line are dropped (--check and --diff still work because main() handles them itself). Files without a config file get plain defaults. This is easy to hit in a monorepo with per-project config files and shared pre-commit args such as ["--resolve-all-configs", "--profile=black"]: the profile is silently ignored.

For example, with pkg/pyproject.toml containing [tool.isort] / line_length = 100 and pkg/a.py containing from os import path, sep, isort --force-single-line-imports pkg/a.py splits the import, but isort --force-single-line-imports --resolve-all-configs pkg/a.py leaves it on one line. --profile, --line-length and --verbose are ignored the same way (the missing verbose output is the first question in #2045).

This passes the command line options to find_all_configs, which applies them on top of every config file it finds and on the default used for files without one. It follows #2119 by hotpxl and adds the test that was asked for there. Unlike #2119, settings_path and settings_file are not passed on: settings_path defaults to the first file's directory, so passing it would load that project's config for files in every other project. The new test covers that case too.

Refs #2045 (the src_paths part of that issue is separate).

Ran: coverage run -m pytest tests/unit/ (the new test fails without the change) and the tox -e lint commands.

Diff: 191 lines (+143 / -48) across 2 files Reviewer: nk-batman21 Review duration: 47387m
All Vouch review confidence checks passed
Residual risk 0.37 = Change Risk (0.66) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 191 lines diff across 2 files
0.66
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
44%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.315
Sensitive Paths sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #2769"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: medium confidence: 44.7% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 66.1% (HIGH) · Higher = larger blast radius
66.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 44.7% · Lower = rushed or shallow review
44.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 36.5% · Moderate risk
36.5%
Repository