Skip to content

Commit

Permalink
style: pre-commit.ci auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 3, 2024
1 parent deac9aa commit 396c554
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/taskgraph/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 396c554

Please sign in to comment.