diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 164803fb8bd..76e891d1ae1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: - kornia>=0.6.9 - lightning>=2.0.9 - matplotlib>=3.8.1 - - numpy>=1.22 + - numpy>=1.22,<2 - pillow>=10.3.0 - pytest>=6.1.2 - pyvista>=0.34.2 diff --git a/tests/datamodules/test_geo.py b/tests/datamodules/test_geo.py index b4944ba7f6c..e0b66ab1984 100644 --- a/tests/datamodules/test_geo.py +++ b/tests/datamodules/test_geo.py @@ -32,7 +32,7 @@ def __init__( def __getitem__(self, query: BoundingBox) -> dict[str, Any]: image = torch.arange(3 * 2 * 2, dtype=torch.float).view(3, 2, 2) - return {"image": image, "crs": CRS.from_epsg(4326), "bbox": query} + return {'image': image, 'crs': CRS.from_epsg(4326), 'bbox': query} def plot(self, *args: Any, **kwargs: Any) -> Figure: return plt.figure() @@ -68,7 +68,7 @@ def __init__( self.length = length def __getitem__(self, index: int) -> dict[str, Tensor]: - return {"image": torch.arange(3 * 2 * 2, dtype=torch.float).view(3, 2, 2)} + return {'image': torch.arange(3 * 2 * 2, dtype=torch.float).view(3, 2, 2)} def __len__(self) -> int: return self.length