Repository navigation
Format the two files main is failing its own pre-commit hook on - #11203
Merged
Merged
Conversation
pre-commit.ci runs --all-files against each PR merged into main, so these two files fail the ruff-format-with-kwargs hook on every open PR rather than on the PR that touches them. Neither is touched by any PR I have open; the diff is three multi-line calls joined, whitespace only, and the kwarg spacing the hook exists to preserve is unchanged.
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. |
rhsCZ
pushed a commit
to rhsCZ/unsloth
that referenced
this pull request
Sep 17, 2026
Picks up the formatter fix from unslothai#11203, which is what pre-commit.ci was failing on: it runs --all-files against the PR merged into main, so two files that had drifted out of format on main failed the hook on every open PR rather than on the PR that touched them.
shaojun
pushed a commit
to shaojun/unsloth
that referenced
this pull request
Sep 29, 2026
…othai#11203) pre-commit.ci runs --all-files against each PR merged into main, so these two files fail the ruff-format-with-kwargs hook on every open PR rather than on the PR that touches them. Neither is touched by any PR I have open; the diff is three multi-line calls joined, whitespace only, and the kwarg spacing the hook exists to preserve is unchanged.
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.ciruns--all-filesagainst each PR merged into main, so a file that drifts out of format on main fails theruff-format-with-kwargshook on every open PR, not on the PR that touched it.Two files are currently in that state on main:
Verified by running the hook's own file set (its
excluderegex applied) against pristineorigin/main: exactly these two come back modified, with a diff identical to the one seen when the same set is run against a PR merged into main. So the failure follows main, not the PR.The change is whitespace only, three multi-line calls joined into one line each. The
kwarg = valuespacing that the hook exists to preserve is untouched.Ran with the hook's pinned formatter,
ruff==0.6.9from the hook'sadditional_dependencies, not thev0.15.18that the separate lint hook uses.scripts/run_ruff_format.pyrefuses to run under the wrong one, which is how the two versions stay distinguishable.tests/studio/install/test_dependency_pass_skips.pyandtests/studio/install/test_mlx_install.py: 228 passed.