Enable ISC in flake8 and ruff

This commit is contained in:
Alexander Hess 2026-11-30 21:09:05 +01:00
commit 0cb924b3b6
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
2 changed files with 21 additions and 4 deletions

View file

@ -90,8 +90,8 @@ def tactical_heuristic( # noqa:C901,D417,DOC001
click.echo(
"Parameters: "
+ f"city={city}, grid.side_length={side_length}, "
+ f"time_step={time_step}, train_horizon={train_horizon}",
f"city={city}, grid.side_length={side_length}, "
f"time_step={time_step}, train_horizon={train_horizon}",
)
# Load the historic order data.
@ -132,7 +132,7 @@ def tactical_heuristic( # noqa:C901,D417,DOC001
)
click.echo(
f"Predicting pixel #{pixel.id} in {city} "
+ f"for {predict_day} with {model.name}",
f"for {predict_day} with {model.name}",
)
# Only loop over the time steps corresponding to working hours.

View file

@ -104,7 +104,7 @@ def stl( # noqa:C901,PLR0912,PLR0913,PLR0915
if nt % 2 == 0 or nt < default_nt:
raise ValueError(
"`nt` must be odd and `>= (1.5 * frequency) / [1 - (1.5 / ns)]`, "
+ f"which is {default_nt}",
f"which is {default_nt}",
)
else:
nt = default_nt