Skip to content

Commit 524040a

Browse files
pre-commit-ci[bot]ianthomas23
authored andcommitted
chore: update pre-commit hooks (#1388)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 50d4db0 commit 524040a

File tree

7 files changed

+9
-5
lines changed

7 files changed

+9
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.11.4
7878
hooks:
7979
- id: ruff
8080
types_or: [python, jupyter]

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
import re
56

67
# Version string must appear intact for hatch versioning

ipykernel/ipkernel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -780,9 +780,9 @@ def run_closure(self: threading.Thread):
780780
for stream in [stdout, stderr]:
781781
if isinstance(stream, OutStream):
782782
if parent == kernel_thread_ident:
783-
stream._thread_to_parent_header[
784-
self.ident
785-
] = kernel._new_threads_parent_header
783+
stream._thread_to_parent_header[self.ident] = (
784+
kernel._new_threads_parent_header
785+
)
786786
else:
787787
stream._thread_to_parent[self.ident] = parent
788788
_threading_Thread_run(self)

ipykernel/kernelbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
def _accepts_parameters(meth, param_names):
7474
parameters = inspect.signature(meth).parameters
75-
accepts = {param: False for param in param_names}
75+
accepts = dict.fromkeys(param_names, False)
7676

7777
for param in param_names:
7878
param_spec = parameters.get(param)

ipykernel/shellchannel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A thread for a shell channel."""
2+
23
from __future__ import annotations
34

45
from typing import Any

ipykernel/subshell_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Manager of subshells in a kernel."""
2+
23
from __future__ import annotations
34

45
import json

ipykernel/thread.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Base class for threads."""
2+
23
from threading import Thread
34

45
from tornado.ioloop import IOLoop

0 commit comments

Comments
 (0)