Skip to content

Commit

Permalink
Some formatting changes to prepare bumping ruff pre-commit. (#1329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau authored Feb 14, 2025
1 parent 230349d commit d11c032
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 18 deletions.
1 change: 1 addition & 0 deletions examples/embedding/inprocess_qtconsole.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An in-process qt console app."""

import os

import tornado
Expand Down
1 change: 1 addition & 0 deletions examples/embedding/inprocess_terminal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An in-process terminal example."""

import os

from anyio import run
Expand Down
1 change: 1 addition & 0 deletions examples/embedding/ipkernel_wxapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Ref: Modified from wxPython source code wxPython/samples/simple/simple.py
"""

# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions hatch_build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A custom hatch build hook for ipykernel."""

import shutil
import sys
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions ipykernel/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The cli entry point for ipykernel."""

if __name__ == "__main__":
from ipykernel import kernelapp as app

Expand Down
1 change: 1 addition & 0 deletions ipykernel/compiler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Compiler helpers for the debugger."""

import os
import sys
import tempfile
Expand Down
4 changes: 2 additions & 2 deletions ipykernel/connect.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Connection file-related utilities for the kernel
"""
"""Connection file-related utilities for the kernel"""

# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import annotations
Expand Down
3 changes: 1 addition & 2 deletions ipykernel/datapub.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.

"""Publishing native (typically pickled) objects.
"""
"""Publishing native (typically pickled) objects."""

import warnings

Expand Down
1 change: 1 addition & 0 deletions ipykernel/debugger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Debugger implementation for the IPython kernel."""

import os
import re
import sys
Expand Down
3 changes: 1 addition & 2 deletions ipykernel/embed.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Simple function for embedding an IPython kernel
"""
"""Simple function for embedding an IPython kernel"""
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions ipykernel/gui/gtk3embed.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""GUI support for the IPython ZeroMQ kernel - GTK toolkit support.
"""
"""GUI support for the IPython ZeroMQ kernel - GTK toolkit support."""
# -----------------------------------------------------------------------------
# Copyright (C) 2010-2011 The IPython Development Team
#
Expand Down
3 changes: 1 addition & 2 deletions ipykernel/gui/gtkembed.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""GUI support for the IPython ZeroMQ kernel - GTK toolkit support.
"""
"""GUI support for the IPython ZeroMQ kernel - GTK toolkit support."""
# -----------------------------------------------------------------------------
# Copyright (C) 2010-2011 The IPython Development Team
#
Expand Down
3 changes: 1 addition & 2 deletions ipykernel/heartbeat.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""The client and server for a basic ping-pong style heartbeat.
"""
"""The client and server for a basic ping-pong style heartbeat."""

# -----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
Expand Down
3 changes: 2 additions & 1 deletion ipykernel/inprocess/blocking.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
""" Implements a fully blocking kernel client.
"""Implements a fully blocking kernel client.
Useful for test suites and blocking terminal interfaces.
"""

import sys

# -----------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion ipykernel/inprocess/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# Imports
# -----------------------------------------------------------------------------


from jupyter_client.client import KernelClient
from jupyter_client.clientabc import KernelClientABC

Expand Down
3 changes: 1 addition & 2 deletions ipykernel/inprocess/constants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Shared constants.
"""
"""Shared constants."""

# Because inprocess communication is not networked, we can use a common Session
# key everywhere. This is not just the empty bytestring to avoid tripping
Expand Down
2 changes: 1 addition & 1 deletion ipykernel/inprocess/socket.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Defines a dummy socket implementing (part of) the zmq.Socket interface. """
"""Defines a dummy socket implementing (part of) the zmq.Socket interface."""

# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
Expand Down
1 change: 1 addition & 0 deletions ipykernel/log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A PUB log handler."""

import warnings

from zmq.log.handlers import PUBHandler
Expand Down
1 change: 1 addition & 0 deletions ipykernel/shellchannel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A thread for a shell channel."""

import zmq.asyncio

from .subshell_manager import SubshellManager
Expand Down
1 change: 1 addition & 0 deletions ipykernel/trio_runner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A trio loop runner."""

import builtins
import logging
import signal
Expand Down
2 changes: 1 addition & 1 deletion tests/test_zmq_shell.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Tests for zmq shell / display publisher. """
"""Tests for zmq shell / display publisher."""

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

0 comments on commit d11c032

Please sign in to comment.