Skip to content

chore(ci): update prek hooks - #707

Merged
thewtex merged 2 commits into
mainfrom
prek/autoupdate
Sep 1, 2026
Merged

chore(ci): update prek hooks#707
thewtex merged 2 commits into
mainfrom
prek/autoupdate

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Automated update of hook revisions via prek update.

The hook autoupdate in the previous commit pulled in ruff 0.16, whose
defaults changed in two ways that broke the prek job:

- Files that resolve no ruff configuration now get a much broader default
  rule set. `.commitizen/*.py` and `docs/conf.py` sit above `py/` and `mcp/`,
  so they were suddenly linted with rules the project does not select. Add a
  root `ruff.toml` that extends `py/pyproject.toml` so they follow the same
  configuration as the rest of the Python code, and apply the resulting
  RET505 fixes.
- `ruff-format` now also formats Python blocks in Markdown, which reformats
  the documentation. Keep that, but exclude `AGENTS.md`: its formatting
  guidance is written as deliberately misformatted "WRONG" examples that
  formatting would collapse into their "RIGHT" counterparts.

Also switch the `ruff` hook to its new `ruff-check` id, apply the RUF036
and duplicate-`__all__`-entry fixes, and fix a spelling that codespell 2.4
flags in docs/mcp.md.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uY6F9EC1Wo5QuyvaFUaqx
@thewtex
thewtex merged commit fcc8fcc into main Sep 1, 2026
30 checks passed
@thewtex
thewtex deleted the prek/autoupdate branch September 1, 2026 20:54
@vboussot

vboussot commented Sep 1, 2026

Copy link
Copy Markdown
Member

This left main's prek red. The bumped ruff-format reformats one file:

ruff format....................................Failed
  1 file reformatted, 233 files left unchanged
diff --git a/docs/migration_guides/v0-43_to_v0-44.md

Ruff 0.15 formats Python blocks inside Markdown, and this repository enables preview, so a file nobody touched became unformatted under the new revision. Confirmed on fcc8fcca (main) and reproducible locally with ruff format --check --preview on that one path.

Every PR updated since inherits it, #708 among them, so a red prek there is not the PR's own doing. Happy to send the reformat if you would rather not carry it.

vboussot added a commit that referenced this pull request Sep 1, 2026
Ruff 0.15 formats Python blocks inside Markdown and this repository enables
preview, so a file nobody touched became unformatted when the prek autoupdate
bumped the hook, leaving main red and every PR updated since inheriting it.

Refs #707.
vboussot added a commit that referenced this pull request Sep 1, 2026
Ruff 0.15 formats Python blocks inside Markdown and this repository enables
preview, so a file nobody touched became unformatted when the prek autoupdate
bumped the hook, leaving main red and every PR updated since inheriting it.

Refs #707.
vboussot added a commit that referenced this pull request Sep 1, 2026
Ruff 0.15 formats Python blocks inside Markdown and this repository enables
preview, so a file nobody touched became unformatted when the prek autoupdate
bumped the hook, leaving main red and every PR updated since inheriting it.

Refs #707.
@github-actions github-actions Bot mentioned this pull request Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants