[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
+4 -4
View File
@@ -14,11 +14,11 @@ def print_stats(x: List[int]):
x = sorted(x)
lenx = len(x)
print(
f"mean = {sum(x)/len(x):.2f}, "
f"mean = {sum(x) / len(x):.2f}, "
f"min = {min(x):.2f}, "
f"p25 = {x[int(lenx*0.25)]:.2f}, "
f"p50 = {x[int(lenx*0.5)]:.2f}, "
f"p75 = {x[int(lenx*0.75)]:.2f}, "
f"p25 = {x[int(lenx * 0.25)]:.2f}, "
f"p50 = {x[int(lenx * 0.5)]:.2f}, "
f"p75 = {x[int(lenx * 0.75)]:.2f}, "
f"max = {max(x):.2f}"
)
+4 -4
View File
@@ -18,11 +18,11 @@ def print_stats(x: List[int]):
x = sorted(x)
lenx = len(x)
print(
f"mean = {sum(x)/len(x):.2f}, "
f"mean = {sum(x) / len(x):.2f}, "
f"min = {min(x):.2f}, "
f"p25 = {x[int(lenx*0.25)]:.2f}, "
f"p50 = {x[int(lenx*0.5)]:.2f}, "
f"p75 = {x[int(lenx*0.75)]:.2f}, "
f"p25 = {x[int(lenx * 0.25)]:.2f}, "
f"p50 = {x[int(lenx * 0.5)]:.2f}, "
f"p75 = {x[int(lenx * 0.75)]:.2f}, "
f"max = {max(x):.2f}"
)
+2 -2
View File
@@ -109,7 +109,7 @@ elif hicache_mem_layout == "layer_first":
for operation in operations:
cache_controller.generic_page_backup(operation, batch_size=128)
tok = time.monotonic()
print(f"{tok-tik:.6f} s")
print(f"{tok - tik:.6f} s")
operations = [
PrefetchOperation(
@@ -137,4 +137,4 @@ elif hicache_mem_layout == "layer_first":
for operation in operations:
cache_controller.generic_page_transfer(operation, batch_size=128)
tok = time.monotonic()
print(f"{tok-tik:.6f} s")
print(f"{tok - tik:.6f} s")