Skip to content

Commit d11c032

Browse files
authored
Some formatting changes to prepare bumping ruff pre-commit. (#1329)
1 parent 230349d commit d11c032

21 files changed

+22
-18
lines changed

examples/embedding/inprocess_qtconsole.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""An in-process qt console app."""
2+
23
import os
34

45
import tornado

examples/embedding/inprocess_terminal.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""An in-process terminal example."""
2+
23
import os
34

45
from anyio import run

examples/embedding/ipkernel_wxapp.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
1717
Ref: Modified from wxPython source code wxPython/samples/simple/simple.py
1818
"""
19+
1920
# -----------------------------------------------------------------------------
2021
# Imports
2122
# -----------------------------------------------------------------------------

hatch_build.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A custom hatch build hook for ipykernel."""
2+
23
import shutil
34
import sys
45
from pathlib import Path

ipykernel/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The cli entry point for ipykernel."""
2+
23
if __name__ == "__main__":
34
from ipykernel import kernelapp as app
45

ipykernel/compiler.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Compiler helpers for the debugger."""
2+
23
import os
34
import sys
45
import tempfile

ipykernel/connect.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
"""Connection file-related utilities for the kernel
2-
"""
1+
"""Connection file-related utilities for the kernel"""
2+
33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.
55
from __future__ import annotations

ipykernel/datapub.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Copyright (c) IPython Development Team.
22
# Distributed under the terms of the Modified BSD License.
33

4-
"""Publishing native (typically pickled) objects.
5-
"""
4+
"""Publishing native (typically pickled) objects."""
65

76
import warnings
87

ipykernel/debugger.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Debugger implementation for the IPython kernel."""
2+
23
import os
34
import re
45
import sys

ipykernel/embed.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Simple function for embedding an IPython kernel
2-
"""
1+
"""Simple function for embedding an IPython kernel"""
32
# -----------------------------------------------------------------------------
43
# Imports
54
# -----------------------------------------------------------------------------

ipykernel/gui/gtk3embed.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""GUI support for the IPython ZeroMQ kernel - GTK toolkit support.
2-
"""
1+
"""GUI support for the IPython ZeroMQ kernel - GTK toolkit support."""
32
# -----------------------------------------------------------------------------
43
# Copyright (C) 2010-2011 The IPython Development Team
54
#

ipykernel/gui/gtkembed.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""GUI support for the IPython ZeroMQ kernel - GTK toolkit support.
2-
"""
1+
"""GUI support for the IPython ZeroMQ kernel - GTK toolkit support."""
32
# -----------------------------------------------------------------------------
43
# Copyright (C) 2010-2011 The IPython Development Team
54
#

ipykernel/heartbeat.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""The client and server for a basic ping-pong style heartbeat.
2-
"""
1+
"""The client and server for a basic ping-pong style heartbeat."""
32

43
# -----------------------------------------------------------------------------
54
# Copyright (C) 2008-2011 The IPython Development Team

ipykernel/inprocess/blocking.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
""" Implements a fully blocking kernel client.
1+
"""Implements a fully blocking kernel client.
22
33
Useful for test suites and blocking terminal interfaces.
44
"""
5+
56
import sys
67

78
# -----------------------------------------------------------------------------

ipykernel/inprocess/client.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# Imports
1212
# -----------------------------------------------------------------------------
1313

14-
1514
from jupyter_client.client import KernelClient
1615
from jupyter_client.clientabc import KernelClientABC
1716

ipykernel/inprocess/constants.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Shared constants.
2-
"""
1+
"""Shared constants."""
32

43
# Because inprocess communication is not networked, we can use a common Session
54
# key everywhere. This is not just the empty bytestring to avoid tripping

ipykernel/inprocess/socket.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Defines a dummy socket implementing (part of) the zmq.Socket interface. """
1+
"""Defines a dummy socket implementing (part of) the zmq.Socket interface."""
22

33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.

ipykernel/log.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A PUB log handler."""
2+
23
import warnings
34

45
from zmq.log.handlers import PUBHandler

ipykernel/shellchannel.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A thread for a shell channel."""
2+
23
import zmq.asyncio
34

45
from .subshell_manager import SubshellManager

ipykernel/trio_runner.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A trio loop runner."""
2+
23
import builtins
34
import logging
45
import signal

tests/test_zmq_shell.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Tests for zmq shell / display publisher. """
1+
"""Tests for zmq shell / display publisher."""
22

33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.

0 commit comments

Comments
 (0)