Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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']
Expand Down
1 change: 0 additions & 1 deletion atlite/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions atlite/cutout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/test_preparation_and_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading