Remove the config of flake8-expression-complexity

This commit is contained in:
Alexander Hess 2026-11-28 02:13:40 +01:00
commit 137b3b1e03
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
2 changed files with 13 additions and 13 deletions

View file

@ -26,7 +26,7 @@ class TestAggregateOrders:
Note: This fixture also exists in `tests.db.test_grids`.
"""
mock = mocker.Mock()
query = ( # noqa:ECE001
query = (
mock.query.return_value.join.return_value.filter.return_value.all # noqa:E501
)
monkeypatch.setattr(db, 'session', mock)

View file

@ -105,17 +105,17 @@ class TestChooseTacticalModel:
data.loc[:, 'n_orders'] = 1
# ... and we set three additional time steps per day to `0`.
data.loc[ # noqa:ECE001
data.loc[
# all `Pixel`s, all `Order`s in time steps starting at 11 am
(slice(None), slice(data.index.levels[1][0], None, 12)),
'n_orders',
] = 0
data.loc[ # noqa:ECE001
data.loc[
# all `Pixel`s, all `Order`s in time steps starting at 12 am
(slice(None), slice(data.index.levels[1][1], None, 12)),
'n_orders',
] = 0
data.loc[ # noqa:ECE001
data.loc[
# all `Pixel`s, all `Order`s in time steps starting at 1 pm
(slice(None), slice(data.index.levels[1][2], None, 12)),
'n_orders',