Skip to content

Commit 3d4df3b

Browse files
authored
minor code reformating valid ruff 0.9.6 (#1330)
1 parent a2f3d4b commit 3d4df3b

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

ipykernel/connect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ def connect_qtconsole(
133133

134134

135135
__all__ = [
136-
"write_connection_file",
136+
"connect_qtconsole",
137137
"get_connection_file",
138138
"get_connection_info",
139-
"connect_qtconsole",
139+
"write_connection_file",
140140
]

ipykernel/iostream.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,11 +501,13 @@ def __init__(
501501
self._local = local()
502502

503503
if (
504-
watchfd
505-
and (
506-
(sys.platform.startswith("linux") or sys.platform.startswith("darwin"))
507-
# Pytest set its own capture. Don't redirect from within pytest.
508-
and ("PYTEST_CURRENT_TEST" not in os.environ)
504+
(
505+
watchfd
506+
and (
507+
(sys.platform.startswith("linux") or sys.platform.startswith("darwin"))
508+
# Pytest set its own capture. Don't redirect from within pytest.
509+
and ("PYTEST_CURRENT_TEST" not in os.environ)
510+
)
509511
)
510512
# allow forcing watchfd (mainly for tests)
511513
or watchfd == "force"

tests/test_message_spec.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def _setup_env():
3434

3535

3636
class Reference(HasTraits):
37-
3837
"""
3938
Base class for message spec specification testing.
4039

tests/test_subshells.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ def test_run_concurrently_sequence(are_subshells, overlap):
147147
if overlap:
148148
codes = [
149149
f"b.wait(); start0=True; end0=False; time.sleep({sleep}); end0=True",
150-
f"b.wait(); time.sleep({sleep/2}); assert start0; assert not end0; time.sleep({sleep}); assert end0",
150+
f"b.wait(); time.sleep({sleep / 2}); assert start0; assert not end0; time.sleep({sleep}); assert end0",
151151
]
152152
else:
153153
codes = [
154154
f"b.wait(); start0=True; end0=False; time.sleep({sleep}); assert end1",
155-
f"b.wait(); time.sleep({sleep/2}); assert start0; assert not end0; end1=True",
155+
f"b.wait(); time.sleep({sleep / 2}); assert start0; assert not end0; end1=True",
156156
]
157157

158158
msgs = []

0 commit comments

Comments
 (0)