Enable RUF in ruff

This commit is contained in:
Alexander Hess 2026-11-30 23:17:41 +01:00
commit c56fe649b7
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
2 changed files with 26 additions and 17 deletions

View file

@ -40,19 +40,19 @@ class Config:
# Side lengths (in meters) for which pixel grids are created.
# They are the basis for the aggregated demand forecasts.
GRID_SIDE_LENGTHS = [707, 1000, 1414]
GRID_SIDE_LENGTHS = (707, 1000, 1414)
# Time steps (in minutes) used to aggregate the
# individual orders into time series.
TIME_STEPS = [60]
TIME_STEPS = (60,)
# Training horizons (in full weeks) used to train the forecasting models.
# For now, we only use 7 and 8 weeks as that was the best performing in
# a previous study (note:4f79e8fa).
TRAIN_HORIZONS = [7, 8]
TRAIN_HORIZONS = (7, 8)
# The demand forecasting methods used in the simulations.
FORECASTING_METHODS = ["hets", "rtarima"]
FORECASTING_METHODS = ("hets", "rtarima")
# Colors for the visualizations ins `folium`.
RESTAURANT_COLOR = "red"

View file

@ -156,7 +156,7 @@ class Pixel(meta.Base):
"""Shortcut to the `.city.map` object."""
return self.grid.city.map
def draw( # noqa:C901,PLR0912
def draw(
self,
*,
restaurants: bool = True,