diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c821fd532..f7d742caa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: types: [text] files: \.(json|ipynb)$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.13 + rev: v0.15.0 hooks: - id: ruff name: ruff lint (.py) @@ -23,7 +23,7 @@ repos: - id: ruff-format types_or: [python, jupyter] - repo: https://github.com/rbubley/mirrors-prettier # Update mirror as official mirror is deprecated - rev: v3.8.0 + rev: v3.8.1 hooks: - id: prettier diff --git a/docs/user_guide/examples_v3/tutorial_peninsula_AvsCgrid.ipynb b/docs/user_guide/examples_v3/tutorial_peninsula_AvsCgrid.ipynb index fd0af1850..598cb11f7 100644 --- a/docs/user_guide/examples_v3/tutorial_peninsula_AvsCgrid.ipynb +++ b/docs/user_guide/examples_v3/tutorial_peninsula_AvsCgrid.ipynb @@ -285,8 +285,10 @@ "ax.contour(lonplot, latplot, fieldset.P.data[0, :, :], colors=\"k\", levels=50)\n", "\n", "exps_of_interest = filter(\n", - " lambda exp: exp.plot_title\n", - " in [\"Agrid & linear interpolation\", \"Cgrid & cgrid interpolation\"],\n", + " lambda exp: (\n", + " exp.plot_title\n", + " in [\"Agrid & linear interpolation\", \"Cgrid & cgrid interpolation\"]\n", + " ),\n", " exps,\n", ")\n", "handles = []\n",