File tree 5 files changed +13
-11
lines changed
5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 42
42
python-version : " 3.10"
43
43
44
44
- name : Install and Run Pre-commit
45
- uses : pre-commit/action@v3.0.0
45
+ uses : pre-commit/action@v3.0.1
46
46
47
47
build :
48
48
needs : skip-duplicate-actions
Original file line number Diff line number Diff line change @@ -2,16 +2,18 @@ exclude: "docs|node_modules|migrations|.git|.tox"
2
2
default_stages : [commit]
3
3
fail_fast : true
4
4
5
+ # To update pre-commit hooks, run `pre-commit autoupdate` in the terminal.
6
+ # Then update the versions in `conda-env/dev.yml`.
5
7
repos :
6
8
- repo : https://github.com/pre-commit/pre-commit-hooks
7
- rev : v4.6 .0
9
+ rev : v5.0 .0
8
10
hooks :
9
11
- id : trailing-whitespace
10
12
- id : end-of-file-fixer
11
13
- id : check-yaml
12
14
13
15
- repo : https://github.com/astral-sh/ruff-pre-commit
14
- rev : v0.6.8
16
+ rev : v0.9.4
15
17
hooks :
16
18
# Sort the imports
17
19
- id : ruff
@@ -24,15 +26,15 @@ repos:
24
26
- id : ruff-format
25
27
26
28
- repo : https://github.com/pre-commit/mirrors-mypy
27
- rev : v1.11.2
29
+ rev : v1.14.1
28
30
hooks :
29
31
- id : mypy
30
32
args : ["--config=pyproject.toml"]
31
33
additional_dependencies :
32
34
[
33
35
dask,
34
- numpy>=1.23.0 ,
36
+ " numpy>=2.0.0,<3.0.0 " ,
35
37
pandas,
36
- xarray>=2023.2 .0,
38
+ xarray>=2024.03 .0,
37
39
types-python-dateutil,
38
40
]
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ dependencies:
36
36
# ==================
37
37
- types-python-dateutil
38
38
# NOTE: If the tools below are updated, also update their 'rev' in `.pre-commit.config.yaml`
39
- - pre-commit=3.2 .0
40
- - ruff=0.6.8
41
- - mypy=1.11.2
39
+ - pre-commit=4.1 .0
40
+ - ruff=0.9.4
41
+ - mypy=1.14.1
42
42
# Testing
43
43
# ==================
44
44
- pytest
Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ def generate_multiple_variable_dataset(
461
461
if separate_dims :
462
462
var_names += list (ds_base .sizes .keys ()) # type: ignore[arg-type]
463
463
464
- ds_copy = ds_copy .rename ({x : f"{ x } { idx + 1 } " for x in var_names })
464
+ ds_copy = ds_copy .rename ({x : f"{ x } { idx + 1 } " for x in var_names })
465
465
466
466
datasets .append (ds_copy )
467
467
Original file line number Diff line number Diff line change @@ -978,7 +978,7 @@ def _set_arg_attrs(
978
978
if mode not in list (MODES ):
979
979
modes = ", " .join (f'"{ word } "' for word in MODES )
980
980
raise ValueError (
981
- f"Incorrect `mode` argument. Supported modes include: " f" { modes } ."
981
+ f"Incorrect `mode` argument. Supported modes include: { modes } ."
982
982
)
983
983
984
984
freq_keys = TIME_GROUPS [mode ].keys ()
You can’t perform that action at this time.
0 commit comments