From f1b8271d2276983173758475b8eeab6f8be23973 Mon Sep 17 00:00:00 2001 From: HAL9000 Date: Thu, 7 May 2026 16:34:42 +0000 Subject: [PATCH] format: Apply ruff format to benchmark file Fix formatting issues found by CI lint check: - Consolidate multi-line NodeConfig and PureGraph constructor calls onto single lines as preferred by ruff formatter This resolves the failing CI / lint (pull_request) check. ISSUES CLOSED: #9531 --- benchmarks/pure_graph_bench.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/benchmarks/pure_graph_bench.py b/benchmarks/pure_graph_bench.py index 83f063e96..de376735e 100644 --- a/benchmarks/pure_graph_bench.py +++ b/benchmarks/pure_graph_bench.py @@ -28,9 +28,7 @@ class PureGraphBench: for i in range(node_count): node_name = f"node_{i}" self.nodes[node_name] = NodeConfig( - name=node_name, - type=NodeType.FUNCTION, - function=f"fn_{i}" + name=node_name, type=NodeType.FUNCTION, function=f"fn_{i}" ) self.edges.append(Edge(source=previous, target=node_name)) previous = node_name @@ -43,9 +41,7 @@ class PureGraphBench: } self.graph = PureGraph( - name=f"bench_graph_{node_count}", - nodes=self.nodes, - edges=self.edges + name=f"bench_graph_{node_count}", nodes=self.nodes, edges=self.edges ) def time_topological_order(self, node_count: int) -> None: