diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4facb013..f34a2fac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.5 + rev: v0.3.5 hooks: # Run the linter. - id: ruff @@ -14,7 +14,7 @@ repos: - id: ruff-format types_or: [ python, pyi, jupyter ] - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.15.2 hooks: - id: pyupgrade args: [--py38-plus] diff --git a/mesa_geo/__init__.py b/mesa_geo/__init__.py index 69cae3c9..8021bd5c 100644 --- a/mesa_geo/__init__.py +++ b/mesa_geo/__init__.py @@ -3,6 +3,7 @@ Core Objects: GeoSpace, GeoAgent """ + import datetime from mesa_geo import visualization diff --git a/mesa_geo/raster_layers.py b/mesa_geo/raster_layers.py index 8bf077e6..09c287cd 100644 --- a/mesa_geo/raster_layers.py +++ b/mesa_geo/raster_layers.py @@ -243,16 +243,15 @@ def attributes(self) -> set[str]: return self._attributes @overload - def __getitem__(self, index: int) -> list[Cell]: - ... + def __getitem__(self, index: int) -> list[Cell]: ... @overload - def __getitem__(self, index: tuple[int | slice, int | slice]) -> Cell | list[Cell]: - ... + def __getitem__( + self, index: tuple[int | slice, int | slice] + ) -> Cell | list[Cell]: ... @overload - def __getitem__(self, index: Sequence[Coordinate]) -> list[Cell]: - ... + def __getitem__(self, index: Sequence[Coordinate]) -> list[Cell]: ... def __getitem__( self, index: int | Sequence[Coordinate] | tuple[int | slice, int | slice]