Skip to content

Commit 9ef036a

Browse files
pre-commit-ci[bot]valeriupredoibouweandela
authored
[pre-commit.ci] pre-commit autoupdate (#2845)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Valeriu Predoi <[email protected]> Co-authored-by: Bouwe Andela <[email protected]>
1 parent cbb23dc commit 9ef036a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ repos:
3333
- id: codespell
3434
additional_dependencies: [tomli] # required for Python 3.10
3535
- repo: https://github.com/astral-sh/ruff-pre-commit
36-
rev: "v0.12.12"
36+
rev: "v0.13.0"
3737
hooks:
3838
- id: ruff-check
3939
args: [--fix]
4040
- id: ruff-format
4141
- repo: https://github.com/pre-commit/mirrors-mypy
42-
rev: 'v1.17.1'
42+
rev: 'v1.18.1'
4343
hooks:
4444
- id: mypy
4545
additional_dependencies:

tests/integration/preprocessor/_regrid/test_extract_location.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_cube():
3636
"""Create a 3d synthetic test cube."""
3737
shape = (3, 45, 36)
3838
data = np.arange(np.prod(shape)).reshape(shape)
39-
z, y, x = shape
39+
_, y, x = shape
4040

4141
# Create the cube.
4242
cm = CellMethod(

tests/integration/recipe/test_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_ncl_version_too_low(mocker):
5050
)
5151
with pytest.raises(
5252
RecipeError,
53-
match="NCL version 6.4 or higher is required",
53+
match=r"NCL version 6.4 or higher is required",
5454
):
5555
check.ncl_version()
5656

tests/unit/esgf/test_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def test_esgf_search_uses_second_index_node(mocker):
286286
requests.exceptions.ReadTimeout("Timeout error message"),
287287
search_result,
288288
]
289-
SearchConnection, context = get_mock_connection( # noqa: N806
289+
get_mock_connection(
290290
mocker,
291291
search_results,
292292
)
@@ -304,7 +304,7 @@ def test_esgf_search_fails(mocker):
304304
requests.exceptions.ReadTimeout("Timeout error message 1"),
305305
requests.exceptions.ConnectTimeout("Timeout error message 2"),
306306
]
307-
SearchConnection, context = get_mock_connection( # noqa: N806
307+
get_mock_connection(
308308
mocker,
309309
search_results,
310310
)

tests/unit/recipe/test_to_datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def from_files(_):
343343
short_name="tas",
344344
)
345345

346-
with pytest.raises(RecipeError, match="Unable to replace dataset.*"):
346+
with pytest.raises(RecipeError, match=r"Unable to replace dataset.*"):
347347
to_datasets._dataset_from_files(dataset)
348348

349349

0 commit comments

Comments
 (0)