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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user