Capitalize the explanations after "=>"

This commit is contained in:
Alexander Hess 2026-11-30 23:27:31 +01:00
commit 0090145b65
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
6 changed files with 44 additions and 44 deletions

View file

@ -64,7 +64,7 @@ def tactical_heuristic( # noqa:C901,D417,DOC001
TIME_STEP: length of one time step in minutes; defaults to `60`
TRAIN_HORIZON: length of the training horizon; defaults to `8`
""" # noqa:D412,D417 => formatted as `click` help text
""" # noqa:D412,D417 => Formatted as `click` help text
# Input validation.
try:

View file

@ -42,7 +42,7 @@ def gridify() -> None: # pragma: no cover note:b1f68d24
.count()
)
click.echo(
f"=> assigned {n_assigned} out of {len(city.addresses)} addresses in {city.name}", # noqa:E501
f"=> Assigned {n_assigned} out of {len(city.addresses)} addresses in {city.name}", # noqa:E501
)
db.session.commit()

View file

@ -528,7 +528,7 @@ class Order(meta.Base):
def corrected(self) -> bool:
"""If any timestamp was corrected as compared to the original data."""
return bool(
self.scheduled_delivery_at_corrected # => too much logic
self.scheduled_delivery_at_corrected # => Too much logic
or self.cancelled_at_corrected
or self.restaurant_notified_at_corrected
or self.restaurant_confirmed_at_corrected

View file

@ -111,7 +111,7 @@ def stl( # noqa:C901,PLR0912,PLR0913,PLR0915
raise ValueError(msg)
else:
nt = default_nt
if nt % 2 == 0: # pragma: no cover => hard to construct edge case
if nt % 2 == 0: # pragma: no cover => Hard to construct edge case
nt += 1
if nl is not None:
@ -120,7 +120,7 @@ def stl( # noqa:C901,PLR0912,PLR0913,PLR0915
raise ValueError(msg)
elif frequency % 2 == 0:
nl = frequency + 1
else: # pragma: no cover => hard to construct edge case
else: # pragma: no cover => Hard to construct edge case
nl = frequency
if ds not in {0, 1}:

View file

@ -57,7 +57,7 @@ class RealtimeARIMAModel(base.ForecastingModelABC):
decomposed_training_ts = methods.decomposition.stl(
time_series=training_ts,
frequency=frequency,
# "Periodic" `ns` parameter => same seasonal component value
# "Periodic" `ns` parameter => Same seasonal component value
# for observations of the same lag.
ns=999,
)

View file

@ -57,7 +57,7 @@ class VerticalARIMAModel(base.ForecastingModelABC):
decomposed_training_ts = methods.decomposition.stl(
time_series=training_ts,
frequency=frequency,
# "Periodic" `ns` parameter => same seasonal component value
# "Periodic" `ns` parameter => Same seasonal component value
# for observations of the same lag.
ns=999,
)