From 396e665af9088f4f083c02c12ea1fb4e9b3dff91 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 07:33:54 -0600 Subject: [PATCH] chore: update pre-commit hooks (#1002) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update pre-commit hooks updates: - [github.com/python-jsonschema/check-jsonschema: 0.27.2 → 0.27.3](https://github.com/python-jsonschema/check-jsonschema/compare/0.27.2...0.27.3) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v4.0.0-alpha.8) - [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.8.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.1.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.1.9) - [github.com/scientific-python/cookie: 2023.11.17 → 2023.12.21](https://github.com/scientific-python/cookie/compare/2023.11.17...2023.12.21) * cleanup * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester --- .github/dependabot.yml | 8 ++++++++ .pre-commit-config.yaml | 10 +++++----- tests/test_kernelspecapp.py | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index cbd920f6b..fcdd3e88b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,7 +4,15 @@ updates: directory: "/" schedule: interval: "weekly" + groups: + actions: + patterns: + - "*" - package-ecosystem: "pip" directory: "/" schedule: interval: "weekly" + groups: + actions: + patterns: + - "*" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e593929b..34ae3502a 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.27.2 + rev: 0.27.3 hooks: - id: check-github-workflows @@ -31,13 +31,13 @@ repos: - id: mdformat - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.3" + rev: "v4.0.0-alpha.8" hooks: - id: prettier types_or: [yaml, html, json] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.7.1" + rev: "v1.8.0" hooks: - id: mypy files: jupyter_client @@ -66,7 +66,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.1.9 hooks: - id: ruff types_or: [python, jupyter] @@ -75,7 +75,7 @@ repos: types_or: [python, jupyter] - repo: https://github.com/scientific-python/cookie - rev: "2023.11.17" + rev: "2023.12.21" hooks: - id: sp-repo-review additional_dependencies: ["repo-review[cli]"] diff --git a/tests/test_kernelspecapp.py b/tests/test_kernelspecapp.py index a8cb97180..119b6fb62 100644 --- a/tests/test_kernelspecapp.py +++ b/tests/test_kernelspecapp.py @@ -18,7 +18,7 @@ def test_kernelspec_sub_apps(jp_kernel_dir): prefix = os.path.dirname(os.environ["JUPYTER_DATA_DIR"]) kernel_dir = os.path.join(prefix, "share/jupyter/kernels") app.kernel_spec_manager.kernel_dirs.append(kernel_dir) - app.prefix = prefix = prefix + app.prefix = prefix app.initialize([str(jp_kernel_dir)]) with warnings.catch_warnings(): warnings.simplefilter("ignore")