Lint __init__ and underscore-prefixed files with ruff #9273
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 378 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
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.355
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #9273"
general
weight: 0.35
maxwbuckley
Description
TL;DR:
extend-exclude = ["_"]inpyproject.tomlmatches file basenames, so ruff and the pre-commit ruff/ruff-format hooks have been silently skipping every__init__.py(552),__init__.pyi(241) and_private.pymodule. This PR narrows the exclude and fixes the 30 lint errors and 17 format diffs that the change exposes."_"with the directories it was meant to cover._isaac_simwas already listed; I added_buildand_repo, which match.gitignoreand the[tool.pyright]excludes. This also bringssource/_isaaclab_testing,docs/_extensionsand.github/actions/_libunder lint. All three were added after the pattern in #4329.__init__.pyistubs are export lists thatlazy_export()parses at runtime (isaaclab/utils/module.py::_parse_stub). Later relative wildcards override earlier names, and fallback packages are searched in order. So the stubs getF401,F403,F811andI001per-file ignores. Without them, theruff --fixhook would rewrite 77 stub lines on the next commit (8 F401, 3 F811, 66 I001).ruff formaton the 17 files it flags. The CI pre-commit job runs--all-files, so these would otherwise fail it. No behaviour changes.Type of change
Checklist
pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bump package versions — CI handles that)CONTRIBUTORS.mdor my name already exists there<details>
<summary>How it was verified (optional)</summary>
pre-commit run --all-filespasses with the repo's hooks (ruff 0.14.10, ruff-format, license, codespell, changelog check), and the ruff--fixhook leaves the tree unchanged, so no stub is rewritten..py/.pyi), the AST of every changed file matchesmainapart from import order,contextlib.suppress, and one rewrapped docstring line in a stub. Wrapped strings concatenate to the same values. Non-Python files were not AST-compared.ruff-init-coverage.skipchangelog fragment, since nothing user-facing changed.</details>
🤖 Generated with Claude Code