Skip to content

chore(qa): lower ruff C901 max-complexity from 15 to 13 - #15

Merged
jensens merged 1 commit into
mainfrom
chore/c901-ratchet-13
Aug 26, 2026
Merged

jensens merged 1 commit into
mainfrom
chore/c901-ratchet-13

Conversation

@jensens

@jensens jensens commented Aug 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Lower the ruff C901 (mccabe) max-complexity threshold from 15 to 13 in pyproject.toml.
  • Add a changelog entry under ## unreleased in CHANGES.md.

Rationale

Follow-up to the merged C901 introduction PR #14, which established the gate at the introduction value of 15. This is part of the ecosystem-wide complexity ratchet: now that the complexity hotspots across the ecosystem are refactored, every package passes at 13. This package passes at 13 with zero violations, so the change is zero-cost and prevents new complexity from settling in the 14-15 band. (benchmarks/* remains exempted from C901 via per-file-ignores.)

Test plan

  • uvx ruff check . — all checks passed
  • uvx ruff format --check . — clean (9 files already formatted)

🤖 Generated with Claude Code

Ecosystem-wide complexity ratchet: after the hotspot refactors, every
package passes at 13, so the gate tightens from the introduction value
of 15. This package passes as-is with zero violations.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jensens
jensens merged commit a22e6fe into main Aug 26, 2026
6 checks passed
@jensens
jensens deleted the chore/c901-ratchet-13 branch August 26, 2026 14:38
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