Remove ruff-enforced style rules and fix stale references in developer guidelines #1885
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 300 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.341
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1885"
general
weight: 0.35
mstimberg
Part of #1829.
This PR implements the scope that I proposed in https://github.com/brian-team/brian2/issues/1829#issuecomment-4995656539 (items A to C) and also fixes a few stale references that I found while re-checking the pages against master. It does not restructure the guidelines and does not add a
CONTRIBUTING.mdor templates (see #1830).style.rstruff format, which the page already names as the tool that enforces the code style, applies all of them; I checked this with ruff 0.14.2 (the version pinned in.pre-commit-config.yaml) and the repository'spyproject.toml. Apart from the link below, the rest of the page, including the import conventions, is unchanged.workflow.rsthttps://help.github.com/articles/using-pull-requestsis replaced byhttps://docs.github.com/en/pull-requests(the old URL now only redirects).testing.rstnumpy.testing.utilswas removed in NumPy 1.25, andnumpy.testinghas noarray_equalfunction. The text now refers tonumpy.testing.assert_array_equal, and the two examples importassert_equalfromnumpy.testing, as the test suite does. I also removed "types" from "comparing types, shapes and content", sinceassert_array_equalcompares dtypes only withstrict=True.representation.rstThe
code_styleanchor is kept, since the release notes refer to it.Checks:
rstcheckreports no issues on the four files (forrepresentation.rst, with Sphinx'sdoctestdirective ignored, since rstcheck does not recognise it).sphinx-build -b htmlsucceeds on master and on this branch with the same set of warnings, and the new NumPy references resolve through intersphinx.