Skip to content

Commit

Permalink
Merge pull request #82 from mj0nez/81-python-312-formatting-issues
Browse files Browse the repository at this point in the history
fix: formatting issues
  • Loading branch information
mj0nez authored Jan 29, 2024
2 parents a8cbf00 + 47ef89b commit f3c24ed
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/bdew_datetimes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
bdew_datetimes is a package that models the BDEW holiday, which is relevant for German utilities
"""

from pytz import timezone

from .calendar import create_bdew_calendar
Expand Down
1 change: 1 addition & 0 deletions src/bdew_datetimes/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
contains the business logic (namely the BDEW calendar information)
"""

from datetime import date

from holidays import HolidayBase, HolidaySum
Expand Down
1 change: 1 addition & 0 deletions src/bdew_datetimes/german_strom_and_gas_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
A module to evaluate datetimes and whether they are "on the edge"
of a German "Stromtag" or "Gastag" respectively
"""

from datetime import datetime, time
from enum import Enum
from typing import Callable
Expand Down
1 change: 1 addition & 0 deletions src/bdew_datetimes/periods.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
("gesetzliche Fristen") in the German energy market.
It is based on the chapter "Fristenberechnung" in the GPKE.
"""

import datetime
from dataclasses import dataclass
from datetime import date
Expand Down
12 changes: 6 additions & 6 deletions tests/test_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
6,
DayType.WORKING_DAY,
end_date_type=EndDateType.INCLUSIVE
end_date_type=EndDateType.INCLUSIVE,
# the abmeldedatum is the inclusive end of a contract
),
date(2016, 7, 12),
Expand All @@ -166,7 +166,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
-6,
DayType.WORKING_DAY,
end_date_type=EndDateType.INCLUSIVE
end_date_type=EndDateType.INCLUSIVE,
# the abmeldedatum is the inclusive end of a contract
),
date(2016, 7, 4),
Expand All @@ -181,7 +181,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
7,
DayType.WORKING_DAY,
end_date_type=EndDateType.EXCLUSIVE
end_date_type=EndDateType.EXCLUSIVE,
# lieferbeginn is the exclusive end of the previous contract
),
date(2016, 7, 14),
Expand All @@ -192,7 +192,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
-7,
DayType.WORKING_DAY,
end_date_type=EndDateType.EXCLUSIVE
end_date_type=EndDateType.EXCLUSIVE,
# lieferbeginn is the exclusive end of the previous contract
),
date(2016, 7, 4),
Expand All @@ -207,7 +207,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
10,
DayType.WORKING_DAY,
end_date_type=EndDateType.EXCLUSIVE
end_date_type=EndDateType.EXCLUSIVE,
# lieferbeginn is the exclusive end of the previous contract
),
date(2016, 7, 19),
Expand All @@ -218,7 +218,7 @@ def test_get_previous_working_day(start: date, expected: date):
Period(
-10,
DayType.WORKING_DAY,
end_date_type=EndDateType.EXCLUSIVE
end_date_type=EndDateType.EXCLUSIVE,
# lieferbeginn is the exclusive end of the previous contract
),
date(2016, 7, 4),
Expand Down

0 comments on commit f3c24ed

Please sign in to comment.