Skip to content

Commit fb6b1db

Browse files
committed
Some formatting changes to prepare bumping ruff pre-commit.
Bumping ruff change the formatting in a number of places, I'm breaking that up in smaller self-contained changes to make it easier to review meaningfull changes later. Those changes passes both with current ruff (0.2.0), and 0.9+
1 parent 4cc832e commit fb6b1db

23 files changed

+24
-18
lines changed

examples/embedding/inprocess_qtconsole.py

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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/_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/compiler.py

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 0 deletions
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

0 commit comments

Comments
 (0)