From ab76f2efe3151634438acd17c8f3d36a7f2a6559 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 21:26:00 +0000 Subject: [PATCH 1/3] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/python-jsonschema/check-jsonschema: 0.28.4 → 0.28.6](https://github.com/python-jsonschema/check-jsonschema/compare/0.28.4...0.28.6) - [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.10.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.0...v1.10.1) - [github.com/astral-sh/ruff-pre-commit: v0.4.7 → v0.5.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.7...v0.5.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 39cf8836fe..0d72a2d239 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.28.4 + rev: 0.28.6 hooks: - id: check-github-workflows @@ -52,7 +52,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.10.0" + rev: "v1.10.1" hooks: - id: mypy files: jupyter_server @@ -61,7 +61,7 @@ repos: ["traitlets>=5.13", "jupyter_core>=5.5", "jupyter_client>=8.5"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.7 + rev: v0.5.0 hooks: - id: ruff types_or: [python, jupyter] From 976228b9fc1bb4419bf21b310fa7587a267a943c Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 1 Jul 2024 17:06:51 -0500 Subject: [PATCH 2/3] fix tests --- tests/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index fdbfd60587..deea395705 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -160,7 +160,7 @@ def test_filefind(tmp_path, filename, result): if isinstance(result, str): found = filefind(filename, [str(a), str(b)]) found_relative = Path(found).relative_to(tmp_path) - assert str(found_relative) == result + assert str(found_relative).replace(os.sep, '/') == result else: with pytest.raises(result): filefind(filename, [str(a), str(b)]) From 541e7f7d81c9140d7b46f339fffeee3a82673b75 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 22:09:13 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index deea395705..90f9dcd340 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -160,7 +160,7 @@ def test_filefind(tmp_path, filename, result): if isinstance(result, str): found = filefind(filename, [str(a), str(b)]) found_relative = Path(found).relative_to(tmp_path) - assert str(found_relative).replace(os.sep, '/') == result + assert str(found_relative).replace(os.sep, "/") == result else: with pytest.raises(result): filefind(filename, [str(a), str(b)])