Skip to content

Commit

Permalink
chore: run ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbede committed Oct 3, 2023
1 parent 1dd2334 commit ff8575e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aioelectricitymaps/electricitymaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from aiohttp import ClientSession

from .const import ApiEndpoints
from .exceptions import ElectricityMapsError, ElectricityMapsDecodeError
from .models import CarbonIntensityResponse, Zone
from .exceptions import ElectricityMapsDecodeError, ElectricityMapsError
from .marshmallow import ZoneList
from .models import CarbonIntensityResponse, Zone


@dataclass
Expand Down
2 changes: 2 additions & 0 deletions aioelectricitymaps/marshmallow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""Module contains classes for de-/serialisation with marshmallow."""
from dataclasses import dataclass, field

from dataclasses_json import DataClassJsonMixin, config
from marshmallow import fields

from .models import Zone


Expand Down
2 changes: 1 addition & 1 deletion aioelectricitymaps/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Models to the electricitymaps.com API."""
from dataclasses import dataclass, field

from dataclasses_json import LetterCase, DataClassJsonMixin, config
from dataclasses_json import DataClassJsonMixin, LetterCase, config


@dataclass(slots=True, frozen=True)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_electricitymaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

from aioelectricitymaps import ElectricityMaps
from aioelectricitymaps.exceptions import (
ElectricityMapsError,
ElectricityMapsDecodeError,
ElectricityMapsError,
)
from tests import load_fixture

Expand Down

0 comments on commit ff8575e

Please sign in to comment.