Skip to content

Commit

Permalink
fix: hatch fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
leclairm committed Nov 11, 2024
1 parent 7511112 commit 331a455
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/sirocco/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 []:
Expand Down

0 comments on commit 331a455

Please sign in to comment.