Skip to content

Commit dd07f52

Browse files
chore: update pre-commit hooks (#1355)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 38b470a commit dd07f52

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: trailing-whitespace
2323

2424
- repo: https://github.com/python-jsonschema/check-jsonschema
25-
rev: 0.31.1
25+
rev: 0.31.2
2626
hooks:
2727
- id: check-github-workflows
2828

@@ -74,7 +74,7 @@ repos:
7474
- id: rst-inline-touching-normal
7575

7676
- repo: https://github.com/astral-sh/ruff-pre-commit
77-
rev: v0.2.0
77+
rev: v0.9.7
7878
hooks:
7979
- id: ruff
8080
types_or: [python, jupyter]
@@ -83,7 +83,7 @@ repos:
8383
types_or: [python, jupyter]
8484

8585
- repo: https://github.com/scientific-python/cookie
86-
rev: "2024.01.24"
86+
rev: "2025.01.22"
8787
hooks:
8888
- id: sp-repo-review
8989
additional_dependencies: ["repo-review[cli]"]

ipykernel/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
store the current version info of the server.
33
"""
4+
45
from __future__ import annotations
56

67
import re

ipykernel/inprocess/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# Imports
1212
# -----------------------------------------------------------------------------
1313

14-
1514
from typing import Any, Optional
1615

1716
from jupyter_client.client import KernelClient

ipykernel/ipkernel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,9 @@ def run_closure(self: threading.Thread):
763763
for stream in [stdout, stderr]:
764764
if isinstance(stream, OutStream):
765765
if parent == kernel_thread_ident:
766-
stream._thread_to_parent_header[
767-
self.ident
768-
] = kernel._new_threads_parent_header
766+
stream._thread_to_parent_header[self.ident] = (
767+
kernel._new_threads_parent_header
768+
)
769769
else:
770770
stream._thread_to_parent[self.ident] = parent
771771
_threading_Thread_run(self)

0 commit comments

Comments
 (0)