Skip to content

fix(ci): restore ruff/mypy audit green after #2555 (format + baseline line-shifts) - #2947

Merged
squid-protocol merged 1 commit into
mainfrom
fix/2555-ci-audit-baselines
Sep 10, 2026
Merged

fix(ci): restore ruff/mypy audit green after #2555 (format + baseline line-shifts)#2947
squid-protocol merged 1 commit into
mainfrom
fix/2555-ci-audit-baselines

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Why

The #2555 merge (a550042f) tripped the two pull_request-only audit workflows — mypy-audit and ruff-audit. Every other CI leg passed on that same code (muninn, full-suite, both crucible legs, smoke-test on all platforms, CodeQL, …). Because those audits run only on pull_request (not on push to main) and the repo's auto-merge lands PRs immediately, the change merged before they could gate it.

Opened as a draft on purpose so the audit workflows run and gate this fix before it merges.

What

Two causes, both addressed:

  1. ruff format (zero-tolerance): the new doc_languages set comprehension in _get_dominant_lang exceeded the line limit — wrapped to be ruff format-clean.

  2. Baseline line-shifts (not new findings): the dominant language inconsistency: reports PLAINTEXT while composition table shows JAVASCRIPT 53.8% #2555 edits pushed two pre-existing baselined findings down a few lines. Updated the keys to match:

    • ruff C401 guidestar_lens.py 139 → 149
    • mypy assignment galaxyscope.py 368 → 370

    Baseline keys are {file}:{line}: {code} and the audit's CI check is keys-only, so these are the exact line numbers CI's pinned ruff 0.16.0 / mypy will compute (line numbers are version-independent). Baselines re-normalized to the documented json.dump(indent=2, sort_keys=True) form.

Verification

  • python tests/ruff_audit.py --ci → no NEW findings beyond the 26-finding baseline; ruff format --check clean.
  • python tests/mypy_audit.py --ci → no NEW type errors beyond the 2-error baseline.
  • signal_processor + #2555 tests pass (75).

Follow-up to #2555.

🤖 Generated with Claude Code

…ne line-shifts

The #2555 merge (a550042) tripped the two pull_request-only audit workflows
(mypy-audit, ruff-audit); every other CI leg -- muninn, full-suite, both
crucible legs, smoke-test on all platforms, CodeQL -- passed. These audits run
only on `pull_request`, not on push to main, so the auto-merge landed the
change before they could gate it.

Two causes, both addressed here:

- ruff format (zero-tolerance): the new `doc_languages` set comprehension in
  _get_dominant_lang exceeded the line limit; wrapped to be `ruff format`-clean.
- Baseline line-shifts (NOT new findings): the #2555 edits pushed two
  pre-existing baselined findings down by a few lines. Updated the keys to match
  -- ruff C401 guidestar_lens.py 139 -> 149 (the has_intent Sector-Bias
  generator), mypy assignment galaxyscope.py 368 -> 370. Baseline keys are
  {file}:{line}: {code} and the CI check is keys-only, so these are the exact
  line numbers CI's pinned ruff 0.16.0 / mypy will compute. Baselines
  re-normalized to the documented json.dump(indent=2, sort_keys=True) form.

Verified locally: `ruff_audit.py --ci` and `mypy_audit.py --ci` both report no
new findings beyond baseline; signal_processor + #2555 tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SpojRfky4j31UMHLDcPdto
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review September 10, 2026 23:40
@squid-protocol
squid-protocol merged commit e9df1d7 into main Sep 10, 2026
29 checks passed
@squid-protocol
squid-protocol deleted the fix/2555-ci-audit-baselines branch September 10, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant