[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
+1 -1
View File
@@ -92,7 +92,7 @@ def parity_b():
if torch.equal(
ref.contiguous().view(torch.uint16), got2.contiguous().view(torch.uint16)
):
print(f" {fmt}: bit-exact=True ({len(data)/1e6:.2f}MB)")
print(f" {fmt}: bit-exact=True ({len(data) / 1e6:.2f}MB)")
else:
d = (ref.float() - got2.float()).abs()
print(
+1 -1
View File
@@ -156,5 +156,5 @@ def test_resize_bench():
rs_resize(arr, tw, th)
t_rs = (time.perf_counter() - t0) / 10 * 1e3
print(
f"\nresize 1920x1080->{tw}x{th}: PIL {t_pil:.1f}ms rust {t_rs:.1f}ms ({t_pil/t_rs:.1f}x)"
f"\nresize 1920x1080->{tw}x{th}: PIL {t_pil:.1f}ms rust {t_rs:.1f}ms ({t_pil / t_rs:.1f}x)"
)