Skip to content

Commit 5a69e73

Browse files
authored
Fix CI dependencies and update hdf5 depdendecy (#399)
- Fix the CI dependencies to a specific version, to avoid unexpected failures in nightly builds - Update hdf5 to a version which offers wheels for Python 3.13
1 parent aede576 commit 5a69e73

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.6.8
3+
rev: v0.8.3
44
hooks:
55
- id: ruff
66
alias: ruff-include-sorting
@@ -15,7 +15,7 @@ repos:
1515
files: ^pedpy/
1616

1717
- repo: https://github.com/pre-commit/mirrors-mypy
18-
rev: v1.11.2 # Use the latest version of mypy available at the time
18+
rev: v1.13.0 # Use the latest version of mypy available at the time
1919
hooks:
2020
- id: mypy
2121
name: Check type hints (mypy)

pedpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
plot_walkable_area,
117117
)
118118

119-
__all__ = [
119+
__all__ = [ # noqa: RUF022 disable sorting of __all__ for better maintenance
120120
"MeasurementArea",
121121
"MeasurementLine",
122122
"WalkableArea",

pedpy/methods/profile_calculator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"""
1313

1414
from enum import Enum, auto
15-
from typing import Any, Final, List, Optional, Tuple
15+
from typing import Any, Final, Optional, Sequence, Tuple
1616

1717
import numpy as np
1818
import numpy.typing as npt
@@ -167,8 +167,8 @@ def compute_profiles( # noqa: D417
167167
# pylint: disable=unused-argument,too-many-arguments
168168
**kwargs: Any,
169169
) -> Tuple[
170-
List[npt.NDArray[np.float64]],
171-
List[npt.NDArray[np.float64]],
170+
Sequence[npt.NDArray[np.float64]],
171+
Sequence[npt.NDArray[np.float64]],
172172
]:
173173
"""Computes the density and speed profiles.
174174
@@ -260,7 +260,7 @@ def compute_density_profile(
260260
grid_intersections_area: Optional[npt.NDArray[np.float64]] = None,
261261
gaussian_width: Optional[float] = None,
262262
# pylint: disable=too-many-arguments
263-
) -> List[npt.NDArray[np.float64]]:
263+
) -> Sequence[npt.NDArray[np.float64]]:
264264
"""Compute the density profile.
265265
266266
Args:
@@ -484,7 +484,7 @@ def compute_speed_profile(
484484
fill_value: float = np.nan,
485485
gaussian_width: float = 0.5,
486486
# pylint: disable=too-many-arguments
487-
) -> List[npt.NDArray[np.float64]]:
487+
) -> Sequence[npt.NDArray[np.float64]]:
488488
"""Computes the speed profile for pedestrians within an area.
489489
490490
This function calculates speed profiles based on pedestrian speed data

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies = [
2424
"Shapely~=2.0.6",
2525
"scipy~=1.14",
2626
"matplotlib~=3.9",
27-
"h5py~=3.11",
27+
"h5py~=3.12",
2828
]
2929

3030
requires-python = ">=3.11"

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pandas~=2.2.3
33
Shapely~=2.0.6
44
scipy~=1.14
55
matplotlib~=3.9
6-
h5py~=3.11.0
6+
h5py~=3.12
77

88
# testing
99
pytest~=8.3
@@ -16,7 +16,7 @@ click~=8.1
1616
build~=1.1
1717

1818
# ci
19-
mypy~=1.11
19+
mypy==1.13
2020
mypy-extensions==1.0
21-
ruff~=0.6
22-
pre-commit~=3.8
21+
ruff==0.8
22+
pre-commit==4.0

0 commit comments

Comments
 (0)