From d5a0ff5109ddbd37d88371c10a1ed087201de4b5 Mon Sep 17 00:00:00 2001 From: Umutcan Edizsalan Date: Thu, 23 Jul 2026 16:17:08 +0300 Subject: [PATCH] style: ruff-format the leaderboard renderer Co-authored-by: Cursor --- benchmarks/render_chart.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/benchmarks/render_chart.py b/benchmarks/render_chart.py index 7087faa..09b54f0 100644 --- a/benchmarks/render_chart.py +++ b/benchmarks/render_chart.py @@ -68,9 +68,7 @@ def render_chart(data: dict[str, Any], output: Path) -> None: projects = sorted(data["projects"], key=lambda item: item["score"]) total = len(projects) # rank 1 = highest score (drawn topmost by barh with ascending sort) - labels = [ - f"{total - index}. {item['repository']}" for index, item in enumerate(projects) - ] + labels = [f"{total - index}. {item['repository']}" for index, item in enumerate(projects)] scores = [item["score"] for item in projects] grades = [item["evidence_grade"] for item in projects] # leaderboard palette by rank (rank 1 first), canvas/LLM-benchmark style @@ -85,10 +83,7 @@ def render_chart(data: dict[str, Any], output: Path) -> None: "#f0876e", # 8 salmon "#8957e5", # 9 purple ] - colors = [ - rank_palette[(total - 1 - index) % len(rank_palette)] - for index in range(total) - ] + colors = [rank_palette[(total - 1 - index) % len(rank_palette)] for index in range(total)] fig, ax = plt.subplots(figsize=(12, 0.62 * total + 2.4), constrained_layout=True) fig.patch.set_facecolor("#0d1117")