You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ruff PERF401: list-comprehension findings in core engine files #489
good first issueAccessible entry point for new community contributorspriority: lowUI tweaks, documentation, and minor optimizationspythonPython-specific runtime or environment optimizationsrefactorStructural cleanup or optimization without altering behavior
Part of the ruff lint baseline cleanup (PERF401 -- a for loop that just .append()s could be a list comprehension). Chunked out of the larger sub-issue this replaces, so it's a manageable, self-contained pickup.
Findings
gitgalaxy/core/detector.py:817 (PERF401) -- Use list.extend to create a transformed list
gitgalaxy/core/detector.py:974 (PERF401) -- Use list.extend to create a transformed list
gitgalaxy/core/network_risk_sensor.py:282 (PERF401) -- Use a list comprehension to create a transformed list
gitgalaxy/core/prism.py:452 (PERF401) -- Use list.extend to create a transformed list
gitgalaxy/metrics/signal_processor.py:2459 (PERF401) -- Use list.extend to create a transformed list
gitgalaxy/metrics/statistical_auditor.py:240 (PERF401) -- Use list.extend to create a transformed list
Fix in a small PR, removing resolved entries from tests/ruff_audit_baseline.json (see tests/ruff_audit.py's module docstring for the regen command).
FYI while doing a pass to check for staleness across the "good first issue" label: 1 of the 6 findings listed here has already been fixed incidentally (no longer flagged by ruff check, no longer in the baseline) -- looks like a side effect of unrelated edits to this file, not a targeted fix:
gitgalaxy/core/prism.py (was :452) PERF401
The other 5 findings are still live, confirmed against a fresh ruff check (pinned 0.16.0) + the current baseline. Whoever picks this up can drop that one line item from the findings list.
good first issueAccessible entry point for new community contributorspriority: lowUI tweaks, documentation, and minor optimizationspythonPython-specific runtime or environment optimizationsrefactorStructural cleanup or optimization without altering behavior
Activity
squid-protocol commentedon Aug 9, 2026
FYI while doing a pass to check for staleness across the "good first issue" label: 1 of the 6 findings listed here has already been fixed incidentally (no longer flagged by
ruff check, no longer in the baseline) -- looks like a side effect of unrelated edits to this file, not a targeted fix:gitgalaxy/core/prism.py(was:452) PERF401The other 5 findings are still live, confirmed against a fresh
ruff check(pinned 0.16.0) + the current baseline. Whoever picks this up can drop that one line item from the findings list.fix: ruff PERF401: list-comprehension findings in core engine fil (#1161