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'] diff --git a/atlite/aggregate.py b/atlite/aggregate.py index cc14326f..c495d35f 100644 --- a/atlite/aggregate.py +++ b/atlite/aggregate.py @@ -8,7 +8,6 @@ from typing import TYPE_CHECKING, cast import dask -import pandas as pd import xarray as xr from atlite.utils import ensure_coords 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