Skip to content

Commit

Permalink
please the linters
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-k committed Dec 1, 2023
1 parent 80b1a87 commit 8499a86
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/enlyze/api_clients/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pydantic import BaseModel, ValidationError

from enlyze.auth import TokenAuth
from enlyze.constants import ENLYZE_BASE_URL, HTTPX_TIMEOUT
from enlyze.constants import HTTPX_TIMEOUT
from enlyze.errors import EnlyzeError, InvalidTokenError


Expand Down
2 changes: 1 addition & 1 deletion src/enlyze/api_clients/production_runs/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pydantic import BaseModel

from enlyze.api_clients.base import ApiBaseClient, PaginatedResponseBaseModel
from enlyze.constants import ENLYZE_BASE_URL, PRODUCTION_RUNS_API_SUB_PATH
from enlyze.constants import PRODUCTION_RUNS_API_SUB_PATH


class _Metadata(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion src/enlyze/api_clients/timeseries/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pydantic import AnyUrl

from enlyze.api_clients.base import ApiBaseClient, PaginatedResponseBaseModel
from enlyze.constants import ENLYZE_BASE_URL, TIMESERIES_API_SUB_PATH
from enlyze.constants import TIMESERIES_API_SUB_PATH


class _PaginatedResponse(PaginatedResponseBaseModel):
Expand Down
6 changes: 3 additions & 3 deletions src/enlyze/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ class EnlyzeClient:
"""

def __init__(self, token: str, base_url: str | None = ENLYZE_BASE_URL) -> None:
def __init__(self, token: str, base_url: str | None = None) -> None:
self._timeseries_api_client = TimeseriesApiClient(
token=token,
base_url=base_url,
base_url=base_url or ENLYZE_BASE_URL,
)
self._production_runs_api_client = ProductionRunsApiClient(
token=token,
base_url=base_url,
base_url=base_url or ENLYZE_BASE_URL,
)

def _get_sites(self) -> Iterator[timeseries_api_models.Site]:
Expand Down
2 changes: 1 addition & 1 deletion tests/enlyze/api_clients/production_runs/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
_Metadata,
_PaginatedResponse,
)
from enlyze.constants import ENLYZE_BASE_URL, PRODUCTION_RUNS_API_SUB_PATH
from enlyze.constants import PRODUCTION_RUNS_API_SUB_PATH


@pytest.fixture
Expand Down
1 change: 0 additions & 1 deletion tests/enlyze/api_clients/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ApiBaseModel,
PaginatedResponseBaseModel,
)
from enlyze.constants import ENLYZE_BASE_URL
from enlyze.errors import EnlyzeError, InvalidTokenError


Expand Down

0 comments on commit 8499a86

Please sign in to comment.