Skip to content

Commit 1c1a674

Browse files
pre-commit hook maintenance (#10871)
* re-enable blackdoc with a newer version of black * comment about the version of black * explicit string * enable `toml` linting * update hook versions * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 101a5c2 commit 1c1a674

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,23 @@ repos:
2424
- id: rst-inline-touching-normal
2525
- id: text-unicode-replacement-char
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.13.3
27+
rev: v0.14.1
2828
hooks:
2929
- id: ruff-check
3030
args: ["--fix", "--show-fixes"]
3131
- id: ruff-format
32-
# Disabled: blackdoc v0.4.3 has compatibility issues with Python 3.13
33-
# Re-enable when blackdoc is updated to support Python 3.13
34-
# - repo: https://github.com/keewis/blackdoc
35-
# rev: v0.4.3
36-
# hooks:
37-
# - id: blackdoc
38-
# exclude: "generate_aggregations.py"
39-
# additional_dependencies: ["black==24.8.0"]
32+
- repo: https://github.com/keewis/blackdoc
33+
rev: v0.4.5
34+
hooks:
35+
- id: blackdoc
36+
exclude: "generate_aggregations.py"
37+
# make sure this is the most recent version of black
38+
additional_dependencies: ["black==25.9.0"]
4039
- repo: https://github.com/rbubley/mirrors-prettier
4140
rev: v3.6.2
4241
hooks:
4342
- id: prettier
44-
args: [--cache-location=.prettier_cache/cache]
43+
args: ["--cache-location=.prettier_cache/cache"]
4544
- repo: https://github.com/pre-commit/mirrors-mypy
4645
rev: v1.18.2
4746
hooks:
@@ -61,20 +60,22 @@ repos:
6160
numpy,
6261
]
6362
- repo: https://github.com/citation-file-format/cff-converter-python
64-
rev: ebf0b5e44d67f8beaa1cd13a0d0393ea04c6058d
63+
rev: 5295f87c0e261da61a7b919fc754e3a77edd98a7
6564
hooks:
6665
- id: validate-cff
6766
- repo: https://github.com/ComPWA/taplo-pre-commit
6867
rev: v0.9.3
6968
hooks:
7069
- id: taplo-format
7170
args: ["--option", "array_auto_collapse=false"]
71+
- id: taplo-lint
72+
args: ["--no-schema"]
7273
- repo: https://github.com/abravalheri/validate-pyproject
7374
rev: v0.24.1
7475
hooks:
7576
- id: validate-pyproject
7677
additional_dependencies: ["validate-pyproject-schema-store[all]"]
7778
- repo: https://github.com/adhtruong/mirrors-typos
78-
rev: v1.37.2
79+
rev: v1.38.1
7980
hooks:
8081
- id: typos

doc/user-guide/io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The backends are tried in order: **netcdf4 → h5netcdf → scipy → pydap →
128128
.. code-block:: python
129129
130130
# Prefer h5netcdf over netcdf4
131-
xr.set_options(netcdf_engine_order=['h5netcdf', 'netcdf4', 'scipy'])
131+
xr.set_options(netcdf_engine_order=["h5netcdf", "netcdf4", "scipy"])
132132
133133
See :ref:`options` for more details on configuration options.
134134

0 commit comments

Comments
 (0)