Skip to content

chore: apply ruff format, and gate it so it cannot drift again - #93

Merged
imran-siddique merged 2 commits into
mainfrom
chore/ruff-format
Aug 10, 2026
Merged

chore: apply ruff format, and gate it so it cannot drift again#93
imran-siddique merged 2 commits into
mainfrom
chore/ruff-format

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Formatting only, plus the gate that stops it recurring.

What

ruff format had never been enforced here, so 34 of 77 files had drifted out of format — almost all of them predating any current work. ci.yml runs ruff check and mypy, and neither covers formatting, which is why it accumulated silently.

Two commits, deliberately separate:

  1. chore: apply ruff format — the mechanical reformat. No behaviour change: ruff check passes and the suite is 367 passed / 3 skipped, identical to before.
  2. ci: gate ruff format — adds ruff format --check src/ tests/ to the lint job, so the drift cannot reaccumulate. Checked, not applied, so CI never rewrites anyone's code.

Timing

ca2a has no other open PRs right now, which is the cheapest possible moment to land a repo-wide reformat — nothing in flight gets a conflict.

Reviewing this

The diff is large and entirely uninteresting; git show --stat per commit is the useful view. If you would rather not carry the git blame noise, the honest alternative is to drop commit 1 and keep only the gate, but then CI fails until the files are formatted, so it would have to be all-or-nothing.

Worth knowing: the example artifacts (examples/*/chain.json, dag.json) regenerate with fresh keys on every demo run, so running the suite dirties the working tree. That churn is excluded from this PR — it is a pre-existing wart, not part of this change.

🤖 Generated with Claude Code

imran-siddique and others added 2 commits August 10, 2026 11:35
34 of 77 files were unformatted, almost all of them predating any current
work. ruff format is not a CI gate here (ci.yml runs ruff check and mypy
only), which is why the drift accumulated silently.

Formatting only. No behaviour change: ruff check passes and the suite is
367 passed / 3 skipped, unchanged from before.

Done as its own commit so it does not sit inside a change with real
content, and so the git blame noise is isolated to one reviewable diff.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The sweep in the previous commit fixed 34 files; without a gate it would
just re-accumulate. ruff check does not cover formatting, which is why
nobody noticed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit 33c594f into main Aug 10, 2026
12 checks passed
@imran-siddique
imran-siddique deleted the chore/ruff-format branch August 10, 2026 18:41
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