[CI][RFC] Replace black-jupyter with ruff-format (#37210)

Co-authored-by: Alison Shao <a.shao@wustl.edu>
This commit is contained in:
Alex Nails
2026-09-02 19:46:08 -07:00
committed by GitHub
co-authored by Alison Shao
parent 2641e427be
commit 28262c20df
1411 changed files with 7766 additions and 8176 deletions
@@ -198,7 +198,7 @@ def print_suite_summary(
)
for standalone_file in suite_info.missing_standalone_estimates:
print(f" - {standalone_file}")
print(f" Total estimated time: {total_time:.1f}s ({total_time/60:.1f} min)")
print(f" Total estimated time: {total_time:.1f}s ({total_time / 60:.1f} min)")
print(f" Selected partitions: {len(partitions)}")
print()
@@ -207,7 +207,7 @@ def print_suite_summary(
partition_time = sum(item.est_time for item in partition)
print(f" Partition {idx}:")
print(
f" Estimated time: {partition_time:.1f}s ({partition_time/60:.1f} min)"
f" Estimated time: {partition_time:.1f}s ({partition_time / 60:.1f} min)"
)
for item in partition:
fallback_suffix = (
@@ -304,9 +304,11 @@ def main():
sys.exit(1)
print("=== Diffusion Partition Computation ===")
print(f"Min partition time: {args.min_time}s ({args.min_time/60:.1f} min)")
print(f"Target partition time: {args.target_time}s ({args.target_time/60:.1f} min)")
print(f"Max partition time: {args.max_time}s ({args.max_time/60:.1f} min)")
print(f"Min partition time: {args.min_time}s ({args.min_time / 60:.1f} min)")
print(
f"Target partition time: {args.target_time}s ({args.target_time / 60:.1f} min)"
)
print(f"Max partition time: {args.max_time}s ({args.max_time / 60:.1f} min)")
print()
for suite_name, suite_info in suites.items():
@@ -273,7 +273,7 @@ def generate_dashboard(
if pct > REGRESSION_THRESHOLD:
regressions.append(
f"**{cid}** ({fw}): {prev:.2f}s -> {cur:.2f}s "
f"(+{pct*100:.1f}%)"
f"(+{pct * 100:.1f}%)"
)
if regressions:
+6 -6
View File
@@ -855,9 +855,9 @@ def _install_framework(fw_name: str, dry_run: bool = False) -> bool:
if dry_run:
print(f" [DRY-RUN] Would install: bash {INSTALL_SCRIPT} {fw_name}")
return True
print(f"\n{'='*60}")
print(f"\n{'=' * 60}")
print(f"Installing framework: {fw_name}")
print(f"{'='*60}")
print(f"{'=' * 60}")
ret = subprocess.run(
["bash", str(INSTALL_SCRIPT), fw_name],
timeout=600,
@@ -943,9 +943,9 @@ def run_comparison(
installed_fws.add(fw_name)
for case, fw_cfg in pairs:
print(f"\n{'='*60}")
print(f"\n{'=' * 60}")
print(f"Case: {case['id']} | Model: {case['model']} | Framework: {fw_name}")
print(f"{'='*60}")
print(f"{'=' * 60}")
if dry_run:
cmd = build_server_cmd(fw_name, case, fw_cfg, port)
@@ -982,9 +982,9 @@ def run_comparison(
print(f"\nResults written to {output}")
# Print summary table
print(f"\n{'='*60}")
print(f"\n{'=' * 60}")
print("SUMMARY")
print(f"{'='*60}")
print(f"{'=' * 60}")
for r in results:
lat = f"{r['latency_s']:.2f}s" if r["latency_s"] else r.get("error", "N/A")
print(f" {r['case_id']:30s} | {r['framework']:12s} | {lat}")
@@ -155,8 +155,7 @@ def print_missing_standalone_estimates_summary(
print("\n" + "=" * 60)
print(
"Add standalone estimate(s) to "
"python/sglang/multimodal_gen/test/run_suite.py"
"Add standalone estimate(s) to python/sglang/multimodal_gen/test/run_suite.py"
)
print("=" * 60)
print("The following standalone file(s) used fallback estimate 300.0s.")