File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 4242 python-version : " 3.10"
4343
4444 - name : Install and Run Pre-commit
45- uses :
pre-commit/[email protected] .0 45+ uses :
pre-commit/[email protected] .1 4646
4747 build :
4848 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"
22default_stages : [commit]
33fail_fast : true
44
5+ # To update pre-commit hooks, run `pre-commit autoupdate` in the terminal.
6+ # Then update the versions in `conda-env/dev.yml`.
57repos :
68 - repo : https://github.com/pre-commit/pre-commit-hooks
7- rev : v4.6 .0
9+ rev : v5.0 .0
810 hooks :
911 - id : trailing-whitespace
1012 - id : end-of-file-fixer
1113 - id : check-yaml
1214
1315 - repo : https://github.com/astral-sh/ruff-pre-commit
14- rev : v0.6.8
16+ rev : v0.9.4
1517 hooks :
1618 # Sort the imports
1719 - id : ruff
@@ -24,15 +26,15 @@ repos:
2426 - id : ruff-format
2527
2628 - repo : https://github.com/pre-commit/mirrors-mypy
27- rev : v1.11.2
29+ rev : v1.14.1
2830 hooks :
2931 - id : mypy
3032 args : ["--config=pyproject.toml"]
3133 additional_dependencies :
3234 [
3335 dask,
34- numpy>=1.23.0 ,
36+ " numpy>=2.0.0,<3.0.0 " ,
3537 pandas,
36- xarray>=2023.2 .0,
38+ xarray>=2024.03 .0,
3739 types-python-dateutil,
3840 ]
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ dependencies:
3636 # ==================
3737 - types-python-dateutil
3838 # 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
4242 # Testing
4343 # ==================
4444 - pytest
Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ def generate_multiple_variable_dataset(
461461 if separate_dims :
462462 var_names += list (ds_base .sizes .keys ()) # type: ignore[arg-type]
463463
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 })
465465
466466 datasets .append (ds_copy )
467467
Original file line number Diff line number Diff line change @@ -978,7 +978,7 @@ def _set_arg_attrs(
978978 if mode not in list (MODES ):
979979 modes = ", " .join (f'"{ word } "' for word in MODES )
980980 raise ValueError (
981- f"Incorrect `mode` argument. Supported modes include: " f" { modes } ."
981+ f"Incorrect `mode` argument. Supported modes include: { modes } ."
982982 )
983983
984984 freq_keys = TIME_GROUPS [mode ].keys ()
You can’t perform that action at this time.
0 commit comments