Enable ISC in flake8 and ruff
This commit is contained in:
parent
3bd7dd5772
commit
0cb924b3b6
2 changed files with 21 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue