File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments