From b3f252d77a2aa9a110fe6fc32168177fc406e8b5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 18:51:31 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.9 → v0.15.20](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.9...v0.15.20) - [github.com/pre-commit/mirrors-mypy: v1.15.0 → v2.1.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.15.0...v2.1.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0a810112..cda352f2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: # Run ruff to lint and format - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.15.9 + rev: v0.15.20 hooks: # Run the linter. - id: ruff @@ -25,7 +25,7 @@ repos: # Type checking with mypy - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.15.0 + rev: v2.1.0 hooks: - id: mypy additional_dependencies: ['types-PyYAML', 'types-requests'] From 6a6e85eac9e92a66053419bc20d0d366938519f2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 18:51:45 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- atlite/aggregate.py | 1 - 1 file changed, 1 deletion(-) diff --git a/atlite/aggregate.py b/atlite/aggregate.py index cc14326f..6d4a200d 100644 --- a/atlite/aggregate.py +++ b/atlite/aggregate.py @@ -14,7 +14,6 @@ from atlite.utils import ensure_coords if TYPE_CHECKING: - import pandas as pd from scipy.sparse import spmatrix From 1d162311556fbca4505236ca82371682cb2fd8c8 Mon Sep 17 00:00:00 2001 From: lkstrp Date: Thu, 9 Jul 2026 16:05:21 +0200 Subject: [PATCH 3/3] fix: pre-commit --- atlite/aggregate.py | 2 +- atlite/cutout.py | 6 +++--- test/conftest.py | 2 +- test/test_preparation_and_conversion.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/atlite/aggregate.py b/atlite/aggregate.py index 6d4a200d..c495d35f 100644 --- a/atlite/aggregate.py +++ b/atlite/aggregate.py @@ -8,12 +8,12 @@ from typing import TYPE_CHECKING, cast import dask -import pandas as pd import xarray as xr from atlite.utils import ensure_coords if TYPE_CHECKING: + import pandas as pd from scipy.sparse import spmatrix diff --git a/atlite/cutout.py b/atlite/cutout.py index 1ed5451f..8aa13df6 100644 --- a/atlite/cutout.py +++ b/atlite/cutout.py @@ -291,7 +291,7 @@ def bounds(self) -> NDArray: @property def transform(self) -> rio.Affine: - """Get the affine transform of the cutout.""" + """Affine transform of the cutout.""" return rio.Affine( self.dx, 0, @@ -303,7 +303,7 @@ def transform(self) -> rio.Affine: @property def transform_r(self) -> rio.Affine: - """Get the affine transform of the cutout with reverse y-order.""" + """Affine transform of the cutout with reverse y-order.""" return rio.Affine( self.dx, 0, @@ -339,7 +339,7 @@ def prepared(self) -> bool: @property def prepared_features(self) -> pd.Series[Any]: - """Get the list of prepared features in the cutout.""" + """List of prepared features in the cutout.""" index = [ (self.data[v].attrs["module"], self.data[v].attrs["feature"]) for v in self.data diff --git a/test/conftest.py b/test/conftest.py index 77235d36..da0132b7 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -9,7 +9,7 @@ from pathlib import Path import pytest -from dateutil.relativedelta import relativedelta # type: ignore[import-untyped] +from dateutil.relativedelta import relativedelta from atlite import Cutout diff --git a/test/test_preparation_and_conversion.py b/test/test_preparation_and_conversion.py index a9e698b7..067499a4 100644 --- a/test/test_preparation_and_conversion.py +++ b/test/test_preparation_and_conversion.py @@ -19,7 +19,7 @@ import pandas as pd import pytest import urllib3 -from dateutil.relativedelta import relativedelta # type: ignore[import-untyped] +from dateutil.relativedelta import relativedelta from shapely.geometry import LineString as Line from shapely.geometry import Point