Skip to content

Commit 95e15d6

Browse files
authored
Merge pull request #51 from ThomasBouche/hotfix/pipaudit
update pre-commit config
2 parents c66efa3 + e4f7267 commit 95e15d6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,25 @@ repos:
2727
- id: check-added-large-files
2828
args: [--maxkb=500]
2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.8.6
30+
rev: v0.14.2
3131
hooks:
3232
- id: ruff
3333
args: [--fix]
3434
- id: ruff-format
3535
- repo: https://github.com/pre-commit/mirrors-mypy
36-
rev: v1.14.1
36+
rev: v1.18.2
3737
hooks:
3838
- id: mypy
3939
args: [--config-file=pyproject.toml]
4040
files: src
4141
additional_dependencies: [pydantic~=2.0,types-pytz,types-requests,types-python-dateutil]
4242
- repo: https://github.com/pypa/pip-audit
43-
rev: v2.7.3
43+
rev: v2.9.0
4444
hooks:
4545
- id: pip-audit
46-
args: [--skip-editable]
46+
args: [.]
4747
- repo: https://github.com/compilerla/conventional-pre-commit
48-
rev: v4.0.0
48+
rev: v4.3.0
4949
hooks:
5050
- id: conventional-pre-commit
5151
stages: [commit-msg]

src/meteole/forecast.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from abc import ABC, abstractmethod
1010
from functools import reduce
1111
from importlib.util import find_spec
12-
from typing import Any, Optional
12+
from typing import Any
1313

1414
import pandas as pd
1515
import xarray as xr
@@ -127,7 +127,7 @@ def get_capabilities(self) -> pd.DataFrame:
127127
return self.capabilities
128128

129129
def get_coverage_description(
130-
self, coverage_id: str, ensemble_numbers: list[Optional[int]] | None = None
130+
self, coverage_id: str, ensemble_numbers: list[int | None] | None = None
131131
) -> dict[str, Any]:
132132
"""Return the available axis (times, heights) of a coverage.
133133
@@ -140,7 +140,7 @@ def get_coverage_description(
140140
Returns:
141141
A dictionary containing more info on the coverage.
142142
"""
143-
numbers_to_fetch: list[Optional[int]]
143+
numbers_to_fetch: list[int | None]
144144

145145
if self.MODEL_TYPE == "ENSEMBLE":
146146
if ensemble_numbers is None:

0 commit comments

Comments
 (0)