From 331a455e49f4371b24208ec33e17b5cbdd3acc2e Mon Sep 17 00:00:00 2001 From: Matthieu Date: Mon, 11 Nov 2024 15:20:57 +0100 Subject: [PATCH] fix: hatch fmt --- src/sirocco/core.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/sirocco/core.py b/src/sirocco/core.py index 7b13c49..b7e85a1 100644 --- a/src/sirocco/core.py +++ b/src/sirocco/core.py @@ -97,7 +97,9 @@ def from_config( def link_wait_on_tasks(self): self.wait_on: list[Task] = [] for wait_on_spec in self._wait_on_specs: - self.wait_on.extend(task for task in self.workflow.tasks.iter_from_cycle_spec(wait_on_spec, self.date) if task is not None) + self.wait_on.extend( + task for task in self.workflow.tasks.iter_from_cycle_spec(wait_on_spec, self.date) if task is not None + ) @dataclass(kw_only=True) @@ -228,7 +230,9 @@ def _resolve_target_dates(spec, ref_date: datetime | None) -> Iterator[datetime] if spec.date: yield from spec.date - def iter_from_cycle_spec(self, spec: ConfigCycleSpec, ref_date: datetime | None = None) -> Iterator[TimeSeriesObject]: + def iter_from_cycle_spec( + self, spec: ConfigCycleSpec, ref_date: datetime | None = None + ) -> Iterator[TimeSeriesObject]: name = spec.name if isinstance(self._dict[name], TimeSeries): if ref_date is None and spec.date is []: