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] 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