From 70ed6e24d28af3610aa820a2c15afa9a959073c6 Mon Sep 17 00:00:00 2001 From: Ashwin Nair Date: Mon, 1 Jul 2024 16:14:20 +0400 Subject: [PATCH] Update pre-commit cfg --- .pre-commit-config.yaml | 2 +- tests/datamodules/test_geo.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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