Skip to content

Commit c180be3

Browse files
committed
Linting
1 parent 1167b8a commit c180be3

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

ingestion/data_transfer_models/headline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def validate_period_dates(
109109
return validation.validate_period_end(
110110
period_start=input_period_start, period_end=period_end
111111
)
112-
112+
113113
@model_validator(mode="after")
114114
def invalidate_non_public_data_for_public_ingestion(self) -> Self:
115115
"""Checks that if this is a public instance of the product then `is_public=False` data is invalidated."""
@@ -155,7 +155,7 @@ def _build_enriched_headline_specific_fields(
155155
period_end=individual_time_series["period_end"],
156156
embargo=individual_time_series["embargo"],
157157
metric_value=individual_time_series["metric_value"],
158-
is_public=individual_time_series["is_public"]
158+
is_public=individual_time_series["is_public"],
159159
)
160160
for individual_time_series in source_data["data"]
161161
if individual_time_series["metric_value"] is not None

tests/integration/ingestion/test_consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def test_can_ingest_duplicated_data_with_force_write_flag(self):
266266
"date": "2024-06-17",
267267
"metric_value": 71,
268268
"embargo": "2024-07-16 09:30:00",
269-
"is_public": True
269+
"is_public": True,
270270
}
271271
],
272272
}

tests/system/test_weather_health_alerts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def cold_alert_payload(self) -> dict[str, str | list[dict]]:
3434
"period_end": "2025-01-07 08:00:00",
3535
"metric_value": 11,
3636
"embargo": None,
37-
"is_public": True
37+
"is_public": True,
3838
}
3939
],
4040
"refresh_date": "2025-06-11 11:15:00",

tests/unit/ingestion/consumer/test_build_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_build_core_time_series(
104104
"date": "2023-08-01",
105105
"metric_value": 123,
106106
"force_write": True,
107-
"is_public": True
107+
"is_public": True,
108108
}
109109
]
110110

tests/unit/ingestion/data_transfer_models/headline/test_headline.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_casts_dates_for_period_start_and_end(self):
3939
period_end=fake_period_end,
4040
embargo=VALID_DATETIME,
4141
metric_value=123,
42-
is_public=True
42+
is_public=True,
4343
)
4444

4545
# Then
@@ -66,7 +66,7 @@ def test_validates_embargo_of_none(self):
6666
period_end=fake_period_end,
6767
embargo=fake_embargo,
6868
metric_value=123,
69-
is_public=True
69+
is_public=True,
7070
)
7171

7272
# Then
@@ -91,7 +91,7 @@ def test_validates_datetime_passed_to_period_start(self):
9191
period_end=fake_period_end,
9292
metric_value=123,
9393
embargo=None,
94-
is_public=True
94+
is_public=True,
9595
)
9696

9797
# Then
@@ -116,7 +116,7 @@ def test_validates_when_datetime_passed_to_period_end(self):
116116
period_end=fake_period_end,
117117
metric_value=123,
118118
embargo=None,
119-
is_public=True
119+
is_public=True,
120120
)
121121

122122
# Then
@@ -145,7 +145,7 @@ def test_validates_date_passed_to_embargo(self):
145145
period_end=fake_period_end,
146146
embargo=fake_embargo,
147147
metric_value=123,
148-
is_public=True
148+
is_public=True,
149149
)
150150

151151
# Then

tests/unit/ingestion/data_transfer_models/headline/test_period_dates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_period_end_after_period_start_is_deemed_valid(self):
2323
period_end=period_end,
2424
embargo=None,
2525
metric_value=123,
26-
is_public=True
26+
is_public=True,
2727
)
2828

2929
# Then
@@ -45,7 +45,7 @@ def test_period_end_as_same_date_as_period_start_is_deemed_valid(self):
4545
period_end=period_end,
4646
embargo=None,
4747
metric_value=123,
48-
is_public=True
48+
is_public=True,
4949
)
5050

5151
# Then

tests/unit/ingestion/data_transfer_models/time_series/test_epiweek.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def payload_without_epiweek(self) -> dict[str, str | int | None]:
1111
"date": "2023-11-01",
1212
"embargo": None,
1313
"metric_value": 123,
14-
"is_public": True
14+
"is_public": True,
1515
}
1616

1717
@pytest.mark.parametrize("epiweek", list(range(1, 53 + 1)))

tests/unit/ingestion/data_transfer_models/time_series/test_time_series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_validates_payload_with_embargo_of_none(self):
6767
date=fake_date,
6868
embargo=fake_embargo,
6969
metric_value=fake_metric_value,
70-
is_public=True
70+
is_public=True,
7171
)
7272
)
7373

@@ -137,7 +137,7 @@ def test_raises_error_when_date_passed_to_embargo(self):
137137
epiweek=fake_epiweek,
138138
embargo=fake_embargo,
139139
metric_value=123,
140-
is_public=True
140+
is_public=True,
141141
)
142142
)
143143

0 commit comments

Comments
 (0)