Skip to content

Format the two files #11526 left off the formatter's fixed point - #11955

Merged
danielhanchen merged 1 commit into
mainfrom
format-remote-code-wrapper-files
Sep 25, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
format-remote-code-wrapper-files

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Problem

Repo tests (CPU, rest) fails on main at tests/test_formatter_fixed_point.py::test_every_tracked_python_file_is_already_formatted:

these tracked files are not a fixed point of the ruff-format-with-kwargs hook, so pre-commit.ci will fail the next PR that edits them:
    tests/test_remote_code_training_gates.py
    unsloth/save.py

Both sets of lines come from #11526 (b53a6d7a4, blamed line by line): two over-long lines and one extra blank line. The PR merged while its own CI was still queued, so the check never ran before it landed. The guard is correct and the code is what needs fixing; every PR based on main after #11526 now inherits this red.

Fix

python scripts/run_ruff_format.py unsloth/save.py tests/test_remote_code_training_gates.py. Formatting only: the AST of both files is identical before and after.

Verification

  • tests/test_formatter_fixed_point.py -k every_tracked fails on main and passes here.
  • ast.dump(ast.parse(...)) matches between main and this branch for both files.

tests/test_formatter_fixed_point.py fails on main for unsloth/save.py and
tests/test_remote_code_training_gates.py. Formatting only; the AST is unchanged.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T19:48:06.869870Z f5925a5 Manual request
🔒 Security Review ⚠️ Failed 2026-09-25T19:46:57.075194Z f5925a5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: f5925a5616

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 0ff222f into main Sep 25, 2026
25 of 28 checks passed
@danielhanchen
danielhanchen deleted the format-remote-code-wrapper-files branch September 25, 2026 20:05
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…oint (unslothai#11955)

tests/test_formatter_fixed_point.py fails on main for unsloth/save.py and
tests/test_remote_code_training_gates.py. Formatting only; the AST is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant