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] authored and jcristau committed Dec 3, 2024
1 parent 0e4f80e commit 7e208bf
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/taskgraph/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,7 @@ def _run(self):
all_tasks, Graph(frozenset(full_task_set.graph.nodes), frozenset(edges))
)
logger.info(
"Full task graph contains {} tasks and {} dependencies".format(
len(full_task_set.graph.nodes), len(edges)
)
f"Full task graph contains {len(full_task_set.graph.nodes)} tasks and {len(edges)} dependencies"
)
yield self.verify("full_task_graph", full_task_graph, graph_config, parameters)

Expand All @@ -357,9 +355,7 @@ def _run(self):
Graph(frozenset(target_tasks), frozenset()),
)
logger.info(
"Filter {} pruned {} tasks ({} remain)".format(
fltr.__name__, old_len - len(target_tasks), len(target_tasks)
)
f"Filter {fltr.__name__} pruned {old_len - len(target_tasks)} tasks ({len(target_tasks)} remain)"
)

yield self.verify("target_task_set", target_task_set, graph_config, parameters)
Expand All @@ -377,9 +373,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)) # type: ignore
)
f"Adding {len(always_target_tasks) - len(always_target_tasks & target_tasks)} tasks with `always_target` attribute" # type: ignore
)
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 7e208bf

Please sign in to comment.