From 396c5540a798f0f6b5b25df1540243de85b54463 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:13:08 +0000 Subject: [PATCH] style: pre-commit.ci auto fixes [...] --- src/taskgraph/generator.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/taskgraph/generator.py b/src/taskgraph/generator.py index 8601e2e9..66a0b663 100644 --- a/src/taskgraph/generator.py +++ b/src/taskgraph/generator.py @@ -339,7 +339,8 @@ def _run(self): ) logger.info( "Full task graph contains {} tasks and {} dependencies".format( - (len(full_task_set.graph.nodes), len(edges))) + (len(full_task_set.graph.nodes), len(edges)) + ) ) yield self.verify("full_task_graph", full_task_graph, graph_config, parameters) @@ -357,7 +358,8 @@ def _run(self): ) logger.info( "Filter {} pruned {} tasks ({} remain)".format( - (fltr.__name__, old_len - len(target_tasks), len(target_tasks))) + (fltr.__name__, old_len - len(target_tasks), len(target_tasks)) + ) ) yield self.verify("target_task_set", target_task_set, graph_config, parameters) @@ -375,8 +377,7 @@ def _run(self): else: always_target_tasks = set() logger.info( - "Adding {} tasks with `always_target` attribute".format( - (len(always_target_tasks) - len(always_target_tasks & target_tasks))) + f"Adding {len(always_target_tasks) - len(always_target_tasks & target_tasks)} tasks with `always_target` attribute" ) requested_tasks = target_tasks | always_target_tasks # type: ignore target_graph = full_task_graph.graph.transitive_closure(requested_tasks)