Repository navigation
Fix ruff-format spacing drift in loader.py - #6910
Conversation
ruff-format requires two blank lines before a top-level function. loader.py carried only one, so the ruff-format-with-kwargs pre-commit hook reformats it and the run fails. This restores the expected spacing.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
There was a problem hiding this comment.
Code Review
This pull request introduces a minor formatting change in unsloth/models/loader.py by adding an extra blank line between the functions _maybe_advise_fla_install and _fix_rope_inv_freq. There are no review comments, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Problem
unsloth/models/loader.pyis missing the second blank line before the top-level_fix_rope_inv_freqfunction. ruff-format (run by theruff-format-with-kwargspre-commit hook) requires two blank lines before a top-level definition, so the hook reformats the file and the pre-commit run fails on main and on every PR that includes this file.Fix
Add the one blank line the formatter expects.
Verification
Ran
scripts/run_ruff_format.pyacross all tracked.pyfiles (excluding the hook's own extend-exclude patterns): 1 file modified before this change (loader.py), 0 after. No other file drifts.