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
This commit is contained in:
2026-05-07 16:34:42 +00:00
committed by drew
parent bf18068ee8
commit ecb338cbe6
+2 -6
View File
@@ -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: