Repository navigation
Format test_video_backend.py the way the pinned ruff wants - #10235
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
pre-commit run --all-fileson a cleanmainleaves one file modified:That is enough to reach every open PR, because pre-commit.ci runs over all files, not just the ones a branch touched. On a branch it can push to, it lands an unrelated autofix commit on someone else's PR; on a fork branch it cannot push, so the
pre-commit.ci - prcheck just goes red. Ten open PRs are red on it right now: #10204, #10184, #10183, #10150, #10138, #10094, #10075, #10054, #9850, #9814. Two of my own PRs picked up the autofix commit while I was working on something else, which is how I noticed.Where it came from
4a108e0ca(#10184, "Fix diffusion offload host RAM retention") added two asserts written in the style a current ruff formats to:The repo's formatter is not a current ruff.
.pre-commit-config.yamlruns the lint hook atruff-pre-commitv0.15.18, butruff-format-with-kwargspinsruff==0.6.9in itsadditional_dependencies, and 0.6.9 formats that as:#10184 comes from a fork, so pre-commit.ci could not push the fix to it and the check stayed red through the merge. Nothing else is wrong with that PR: it was formatted by a ruff newer than the one this repo pins, which is an easy thing to do and nothing tells you about it.
This change
The one file, formatted the way the pinned formatter wants. Two hunks, 30 lines each side, and nothing else in the tree needs it.
Verified:
pre-commit run --all-filesnow passes all three hooks with a clean treeThe thing worth fixing next
Two ruff versions in one config is the actual defect here, and it will keep producing this. The lint hook rides
rev: v0.15.18while the formatter is held at0.6.9, so anyone with a current ruff on their machine writes code the gate then rejects, and the only signal is a red check on a fork PR that nobody can push a fix to.Moving the pin to 0.15.18 is the fix, but it reformats a large part of the tree in one commit, so it wants its own PR and its own decision rather than riding along with an unblock. Leaving it here as the note.