From 10395e159d8176643561283553e187c97b49ecba Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Tue, 21 Oct 2025 16:57:44 +0200 Subject: [PATCH 1/6] re-enable blackdoc with a newer version of black --- .pre-commit-config.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c07d5c15c5a..2e11b7b3709 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,14 +29,12 @@ repos: - id: ruff-check args: ["--fix", "--show-fixes"] - id: ruff-format - # Disabled: blackdoc v0.4.3 has compatibility issues with Python 3.13 - # Re-enable when blackdoc is updated to support Python 3.13 - # - repo: https://github.com/keewis/blackdoc - # rev: v0.4.3 - # hooks: - # - id: blackdoc - # exclude: "generate_aggregations.py" - # additional_dependencies: ["black==24.8.0"] + - repo: https://github.com/keewis/blackdoc + rev: v0.4.4 + hooks: + - id: blackdoc + exclude: "generate_aggregations.py" + additional_dependencies: ["black==25.9.0"] - repo: https://github.com/rbubley/mirrors-prettier rev: v3.6.2 hooks: From 5b7bf38c17d792968d0c683ccaeb3fe4028f1720 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Tue, 21 Oct 2025 16:59:04 +0200 Subject: [PATCH 2/6] comment about the version of black --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e11b7b3709..8d55151d7ff 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,6 +34,7 @@ repos: hooks: - id: blackdoc exclude: "generate_aggregations.py" + # make sure this is the most recent version of black additional_dependencies: ["black==25.9.0"] - repo: https://github.com/rbubley/mirrors-prettier rev: v3.6.2 From 51b3002a97f33784eab8e8949a4b17759ccbcc4d Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Tue, 21 Oct 2025 17:00:33 +0200 Subject: [PATCH 3/6] explicit string --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d55151d7ff..93282cfb3ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: rev: v3.6.2 hooks: - id: prettier - args: [--cache-location=.prettier_cache/cache] + args: ["--cache-location=.prettier_cache/cache"] - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.18.2 hooks: From 548dc88678baa305f46d7dae9f9763b90aa25a78 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Tue, 21 Oct 2025 17:00:42 +0200 Subject: [PATCH 4/6] enable `toml` linting --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 93282cfb3ce..9a4368435f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -68,6 +68,8 @@ repos: hooks: - id: taplo-format args: ["--option", "array_auto_collapse=false"] + - id: taplo-lint + args: ["--no-schema"] - repo: https://github.com/abravalheri/validate-pyproject rev: v0.24.1 hooks: From b9a272bceaa283d58779212ea72adc372101439e Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Tue, 21 Oct 2025 21:40:18 +0200 Subject: [PATCH 5/6] update hook versions --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a4368435f5..e157ed928e5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,13 +24,13 @@ repos: - id: rst-inline-touching-normal - id: text-unicode-replacement-char - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.13.3 + rev: v0.14.1 hooks: - id: ruff-check args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/keewis/blackdoc - rev: v0.4.4 + rev: v0.4.5 hooks: - id: blackdoc exclude: "generate_aggregations.py" @@ -60,7 +60,7 @@ repos: numpy, ] - repo: https://github.com/citation-file-format/cff-converter-python - rev: ebf0b5e44d67f8beaa1cd13a0d0393ea04c6058d + rev: 5295f87c0e261da61a7b919fc754e3a77edd98a7 hooks: - id: validate-cff - repo: https://github.com/ComPWA/taplo-pre-commit @@ -76,6 +76,6 @@ repos: - id: validate-pyproject additional_dependencies: ["validate-pyproject-schema-store[all]"] - repo: https://github.com/adhtruong/mirrors-typos - rev: v1.37.2 + rev: v1.38.1 hooks: - id: typos From 129efc2180a0f457351e7353db343a62ef6aa7ea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 Oct 2025 19:56:25 +0000 Subject: [PATCH 6/6] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doc/user-guide/io.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/user-guide/io.rst b/doc/user-guide/io.rst index 8f474cb99f1..fdabcac9edb 100644 --- a/doc/user-guide/io.rst +++ b/doc/user-guide/io.rst @@ -128,7 +128,7 @@ The backends are tried in order: **netcdf4 → h5netcdf → scipy → pydap → .. code-block:: python # Prefer h5netcdf over netcdf4 - xr.set_options(netcdf_engine_order=['h5netcdf', 'netcdf4', 'scipy']) + xr.set_options(netcdf_engine_order=["h5netcdf", "netcdf4", "scipy"]) See :ref:`options` for more details on configuration options.