chore(ci): update prek hooks - #707
Merged
Merged
Conversation
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
approved these changes
Sep 1, 2026
Member
|
This left main's prek red. The bumped 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 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.
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated update of hook revisions via
prek update.