From b6d2aec49252795d05b2dfb8ce6a7095a4eb1578 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Oct 2026 19:40:29 +0000 Subject: [PATCH 1/2] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/rbubley/mirrors-prettier: v3.9.9 → v3.9.10](https://github.com/rbubley/mirrors-prettier/compare/v3.9.9...v3.9.10) - [github.com/pre-commit/mirrors-mypy: v2.3.1 → v2.4.0](https://github.com/pre-commit/mirrors-mypy/compare/v2.3.1...v2.4.0) - [github.com/astral-sh/ruff-pre-commit: v0.16.9 → v0.17.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.16.9...v0.17.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 3a13b57d8..7d6b94cdc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,13 +33,13 @@ repos: additional_dependencies: [mdformat-footnote] - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.9.9" + rev: "v3.9.10" hooks: - id: prettier types_or: [yaml, html, json] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v2.3.1" + rev: "v2.4.0" hooks: - id: mypy files: ipykernel @@ -94,7 +94,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.9 + rev: v0.17.0 hooks: - id: ruff-check types_or: [python, jupyter] From 4bb834eaf77fd47217815365f886b2e117b2895d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Oct 2026 19:41:07 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ipykernel/jsonutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipykernel/jsonutil.py b/ipykernel/jsonutil.py index 57e975c0f..d40661c74 100644 --- a/ipykernel/jsonutil.py +++ b/ipykernel/jsonutil.py @@ -26,7 +26,7 @@ # holy crap, strptime is not threadsafe. # Calling it once at import seems to help. -datetime.strptime("2000-01-01", "%Y-%m-%d") # noqa: DTZ007 +datetime.strptime("2000-01-01", "%Y-%m-%d") # ----------------------------------------------------------------------------- # Classes and functions