Skip to content

[CI] Fix black formatting on main (unblocks PR #21247 lint)#24093

Merged
Kangyan-Zhou merged 1 commit intosgl-project:mainfrom
Kangyan-Zhou:torch-211-lint-fix
Apr 29, 2026
Merged

[CI] Fix black formatting on main (unblocks PR #21247 lint)#24093
Kangyan-Zhou merged 1 commit intosgl-project:mainfrom
Kangyan-Zhou:torch-211-lint-fix

Conversation

@Kangyan-Zhou
Copy link
Copy Markdown
Collaborator

Summary

  • Run black (26.1.0, version pinned in .pre-commit-config.yaml) on three files where the formatting on main no longer matches what black-jupyter produces. No behavioral changes, formatting only.
  • Files: python/sglang/srt/model_executor/model_runner.py, python/sglang/srt/model_loader/loader.py, python/sglang/srt/server_args.py.

Why

The lint job runs pre-commit run --all-files and currently fails on main for these three files. This breaks the lint check on every PR that builds against main, including the Torch 2.11 upgrade PR #21247 — see the failing run: https://github.com/sgl-project/sglang/actions/runs/25132074962/job/73660689648?pr=21247

The diff produced by black here matches exactly what that CI run reported.

Test plan

  • pre-commit run black-jupyter --files <the 3 files> → Passed
  • pre-commit run --files <the 3 files> → all hooks Passed
  • CI lint job on this PR is green

🤖 Generated with Claude Code

Three files on main currently fail the black-jupyter pre-commit hook,
which breaks lint CI for any PR that rebases on or merges with main
(e.g., sgl-project#21247). Run black 26.1.0 on the affected files to restore
conformance — no behavioral changes, formatting only.

Files reformatted:
- python/sglang/srt/model_executor/model_runner.py
- python/sglang/srt/model_loader/loader.py
- python/sglang/srt/server_args.py

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@Kangyan-Zhou Kangyan-Zhou merged commit 6575aea into sgl-project:main Apr 29, 2026
57 of 65 checks passed
vguduruTT pushed a commit to vguduruTT/sglang that referenced this pull request May 2, 2026
sgl-project#24093)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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