Skip to content

Commit 5fb21bd

Browse files
Apply latest Ruff for formatting.
1 parent 394fe38 commit 5fb21bd

19 files changed

+25
-10
lines changed

examples/asyncio-python-embed.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
to stdout, it won't break the input line, but instead writes nicely above the
1212
prompt.
1313
"""
14+
1415
import asyncio
1516

1617
from ptpython.repl import embed

examples/asyncio-ssh-python-embed.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
Run this example and then SSH to localhost, port 8222.
77
"""
8+
89
import asyncio
910
import logging
1011

examples/ptpython_config/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
On Linux, this is: ~/.config/ptpython/config.py
66
On macOS, this is: ~/Library/Application Support/ptpython/config.py
77
"""
8+
89
from prompt_toolkit.filters import ViInsertMode
910
from prompt_toolkit.key_binding.key_processor import KeyPress
1011
from prompt_toolkit.keys import Keys

examples/python-embed-with-custom-prompt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Example of embedding a Python REPL, and setting a custom prompt.
44
"""
5+
56
from prompt_toolkit.formatted_text import HTML, AnyFormattedText
67

78
from ptpython.prompt_style import PromptStyle

examples/python-embed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
2-
"""
3-
"""
2+
""" """
3+
44
from ptpython.repl import embed
55

66

examples/python-input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
2-
"""
3-
"""
2+
""" """
3+
44
from ptpython.python_input import PythonInput
55

66

examples/test-cases/ptpython-in-other-thread.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
(For testing whether it's working fine if it's not embedded in the main
66
thread.)
77
"""
8+
89
import threading
910

1011
from ptpython.repl import embed

ptpython/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Make `python -m ptpython` an alias for running `./ptpython`.
33
"""
4+
45
from __future__ import annotations
56

67
from .entry_points.run_ptpython import run

ptpython/contrib/asyncssh_repl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
should make sure not to use Python 3-only syntax, because this
77
package should be installable in Python 2 as well!
88
"""
9+
910
from __future__ import annotations
1011

1112
import asyncio

ptpython/entry_points/run_ptpython.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
PTPYTHON_CONFIG_HOME: a configuration directory to use
2323
PYTHONSTARTUP: file executed on interactive startup (no default)
2424
"""
25+
2526
from __future__ import annotations
2627

2728
import argparse

0 commit comments

Comments
 (0)