Skip to content

Commit 0e8ccad

Browse files
chore(deps): pre-commit.ci autoupdate (ecmwf#589)
<!--pre-commit.ci start--> updates: - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 25.9.0](psf/black-pre-commit-mirror@25.1.0...25.9.0) - [github.com/pycqa/isort: 6.0.1 → 6.1.0](PyCQA/isort@6.0.1...6.1.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.11 → v0.13.3](astral-sh/ruff-pre-commit@v0.12.11...v0.13.3) - [github.com/tox-dev/pyproject-fmt: v2.6.0 → v2.7.0](tox-dev/pyproject-fmt@v2.6.0...v2.7.0) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ana Prieto Nemesio <91897203+anaprietonem@users.noreply.github.com> Co-authored-by: anaprietonem <ana.prietonemesio@ecmwf.int>
1 parent 1c4a966 commit 0e8ccad

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ repos:
2727
- id: python-check-blanket-noqa # Check for # noqa: all
2828
- id: python-no-log-warn # Check for log.warn
2929
- repo: https://github.com/psf/black-pre-commit-mirror
30-
rev: 25.1.0
30+
rev: 25.9.0
3131
hooks:
3232
- id: black
3333
args: [--line-length=120]
3434
- repo: https://github.com/pycqa/isort
35-
rev: 6.0.1
35+
rev: 6.1.0
3636
hooks:
3737
- id: isort
3838
args:
@@ -41,7 +41,7 @@ repos:
4141
- --profile black
4242
- --project anemoi
4343
- repo: https://github.com/astral-sh/ruff-pre-commit
44-
rev: v0.12.11
44+
rev: v0.13.3
4545
hooks:
4646
- id: ruff
4747
args:
@@ -65,7 +65,7 @@ repos:
6565
- id: docconvert
6666
args: ["numpy"]
6767
- repo: https://github.com/tox-dev/pyproject-fmt
68-
rev: "v2.6.0"
68+
rev: "v2.7.0"
6969
hooks:
7070
- id: pyproject-fmt
7171
- repo: https://github.com/jshwi/docsig # Check docstrings against function sig

graphs/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dependencies = [
5252
"typeguard>=4",
5353
]
5454

55-
optional-dependencies.all = [ "anemoi-graphs[anemoi,tri,hex,healpix]" ]
55+
optional-dependencies.all = [ "anemoi-graphs[anemoi,healpix,hex,tri]" ]
5656
optional-dependencies.anemoi = [ "anemoi-datasets>=0.5.21" ]
5757
optional-dependencies.dev = [ "anemoi-graphs[docs,tests]" ]
5858

training/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies = [
4343
"anemoi-graphs>=0.5.2",
4444
"anemoi-models[migrations]>=0.9.5",
4545
"anemoi-transform>=0.1.11",
46-
"anemoi-utils[provenance,mlflow]>=0.4.37",
46+
"anemoi-utils[mlflow,provenance]>=0.4.37",
4747
"datashader>=0.16.3,<0.17; python_version<'3.10'",
4848
"datashader>=0.17; python_version>='3.10'",
4949
"einops>=0.6.1",
@@ -66,7 +66,7 @@ dependencies = [
6666

6767
optional-dependencies.all = [ ]
6868
optional-dependencies.dev = [
69-
"anemoi-training[docs,tests,all]",
69+
"anemoi-training[all,docs,tests]",
7070
"pre-commit>=3.3.3",
7171
]
7272
optional-dependencies.docs = [

training/src/anemoi/training/schemas/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from pydantic import BaseModel as PydanticBaseModel
1414
from pydantic import Field
1515

16-
from anemoi.models.schemas.data_processor import PreprocessorSchema # noqa: TC001
16+
from anemoi.models.schemas.data_processor import PreprocessorSchema # noqa: TC002
1717

1818

1919
class DataSchema(PydanticBaseModel):

training/tests/integration/aicon/test_cicd_aicon_04_icon-dream_medium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,5 @@ def test_aicon_metadata(aicon_config_with_grid: DictConfig) -> None:
137137
@pytest.mark.slow
138138
@typechecked
139139
def test_aicon_training(trained_aicon: tuple) -> None:
140-
trainer, initial_sum, final_sum = trained_aicon
140+
_, initial_sum, final_sum = trained_aicon
141141
assert initial_sum != final_sum

training/tests/unit/diagnostics/callbacks/test_variable_order.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,14 @@ def test_on_epoch_partial_rename_permute(
171171
fake_trainer.datamodule.ds_train.name_to_index = name_to_index_partial_rename_permute
172172
fake_trainer.datamodule.ds_valid.name_to_index = name_to_index_partial_rename_permute
173173
fake_trainer.datamodule.ds_test.name_to_index = name_to_index_partial_rename_permute
174-
with pytest.raises(ValueError, match="The variable order in the model and data is different."):
174+
with pytest.raises(ValueError, match=r"The variable order in the model and data is different."):
175175
callback.on_train_start(fake_trainer, None)
176-
with pytest.raises(ValueError, match="The variable order in the model and data is different."):
176+
with pytest.raises(ValueError, match=r"The variable order in the model and data is different."):
177177
callback.on_validation_start(fake_trainer, None)
178-
with pytest.raises(ValueError, match="The variable order in the model and data is different."):
178+
with pytest.raises(ValueError, match=r"The variable order in the model and data is different."):
179179
callback.on_test_start(fake_trainer, None)
180180

181-
with pytest.raises(ValueError, match="The variable order in the model and data is different."):
181+
with pytest.raises(ValueError, match=r"The variable order in the model and data is different."):
182182
fake_trainer.datamodule.data_indices.compare_variables(
183183
fake_trainer.model.module._ckpt_model_name_to_index,
184184
name_to_index_partial_rename_permute,

0 commit comments

Comments
 (0)