Skip to content

Commit

Permalink
style(repo): Lint and Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Dec 17, 2024
1 parent 06a0b50 commit 06b75e8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/nwp_consumer/internal/ports/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

from returns.result import ResultE

from nwp_consumer.internal import entities


class ConsumeUseCase(abc.ABC):
"""Interface for the consumer use case.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,11 @@ def _convert(path: pathlib.Path) -> ResultE[list[xr.DataArray]]:
# ECMWF Realtime provides all regions in one set of datasets,
# so distinguish via their coordinates
is_relevant_dataset_predicate: bool = (
(expected_lons is not None and expected_lats is not None) and
(expected_lons[0] <= max(ds.coords["longitude"].values) <= expected_lons[-1]) and
(expected_lats[-1] <= max(ds.coords["latitude"].values) <= expected_lats[0])
(expected_lons is not None and expected_lats is not None)
and
(expected_lons[0] <= max(ds.coords["longitude"].values) <= expected_lons[-1])
and
(expected_lats[-1] <= max(ds.coords["latitude"].values) <= expected_lats[0])
)
if not is_relevant_dataset_predicate:
continue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import os
import pathlib
import unittest
from unittest.mock import patch
from typing import TYPE_CHECKING
from unittest.mock import patch

from returns.result import Failure, ResultE, Success

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from nwp_consumer.internal.services.consumer_service import ConsumerService

from ._dummy_adaptors import DummyRawRepository, DummyNotificationRepository
from ._dummy_adaptors import DummyNotificationRepository, DummyRawRepository


class TestParallelConsumer(unittest.TestCase):
Expand Down

0 comments on commit 06b75e8

Please sign in to comment.