Skip to content

Commit cd884da

Browse files
chore: update pre-commit hooks (#575)
* chore: update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.11 → v0.14.5](astral-sh/ruff-pre-commit@v0.12.11...v0.14.5) - [github.com/adamchainz/blacken-docs: 1.19.1 → 1.20.0](adamchainz/blacken-docs@1.19.1...1.20.0) - [github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.2](pre-commit/mirrors-mypy@v1.17.1...v1.18.2) - [github.com/scientific-python/cookie: 2025.05.02 → 2025.11.10](scientific-python/cookie@2025.05.02...2025.11.10) * address CI failures (#594) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: stephenworsley <[email protected]>
1 parent d56e3da commit cd884da

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ repos:
5151
- id: trailing-whitespace
5252

5353
- repo: https://github.com/astral-sh/ruff-pre-commit
54-
rev: "v0.12.11"
54+
rev: "v0.14.5"
5555
hooks:
5656
- id: ruff-check
5757
types: [file, python]
@@ -67,7 +67,7 @@ repos:
6767
additional_dependencies: [tomli]
6868

6969
- repo: https://github.com/adamchainz/blacken-docs
70-
rev: 1.19.1
70+
rev: 1.20.0
7171
hooks:
7272
- id: blacken-docs
7373
types: [file, rst]
@@ -79,7 +79,7 @@ repos:
7979
types: [file, python]
8080

8181
- repo: https://github.com/pre-commit/mirrors-mypy
82-
rev: 'v1.17.1'
82+
rev: 'v1.18.2'
8383
hooks:
8484
- id: mypy
8585
exclude: 'noxfile\.py|docs/src/conf\.py|^benchmarks'
@@ -91,7 +91,7 @@ repos:
9191
- id: validate-pyproject
9292

9393
- repo: https://github.com/scientific-python/cookie
94-
rev: 2025.05.02
94+
rev: 2025.11.10
9595
hooks:
9696
- id: sp-repo-review
9797
additional_dependencies: ["repo-review[cli]"]

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ ignore = [
7878
"PC180", # Uses prettier
7979
# https://learn.scientific-python.org/development/guides/packaging-simple#PP006
8080
"PP006", # Uses dev dependency group
81+
# https://learn.scientific-python.org/development/guides/tasks/#faster-with-uv
82+
"NOX101",
83+
"NOX102",
84+
"NOX201",
85+
"NOX202",
86+
"NOX203",
8187
]
8288

8389
[tool.mypy]

src/esmf_regrid/tests/unit/experimental/io/test_round_tripping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ def test_grid_to_mesh_curvilinear_round_trip(tmp_path, regridder):
284284
def test_MeshESMFRegridder_masked_round_trip(tmp_path, rg_maker, regridder):
285285
"""Test save/load round tripping for the Mesh regridder classes."""
286286
if regridder == "unstructured":
287-
original_rg, src = rg_maker(masks=True)
287+
original_rg, _src = rg_maker(masks=True)
288288
else:
289-
original_rg, src = rg_maker(regridder=regridder, masks=True)
289+
original_rg, _src = rg_maker(regridder=regridder, masks=True)
290290
filename = tmp_path / "regridder.nc"
291291
save_regridder(original_rg, filename)
292292
loaded_rg = load_regridder(str(filename))

0 commit comments

Comments
 (0)