File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -14,23 +14,21 @@ jobs:
14
14
15
15
steps :
16
16
- uses : actions/checkout@v4
17
-
18
17
- uses : astral-sh/setup-uv@v5
19
18
with :
20
19
python-version : ${{ matrix.python-version }}
21
- - name : Install Dependencies
20
+ - name : Type Checking
22
21
run : |
23
- uv pip install . ruff mypy pytest readme_renderer
24
- uv pip list
25
- - name : Type Checker
22
+ uvx --with . mypy ptpython
23
+ - name : Code formatting
26
24
run : |
27
- mypy ptpython
28
- ruff check .
29
- ruff format --check .
30
- - name : Run Tests
25
+ uvx ruff check .
26
+ uvx ruff format --check .
27
+ - name : Unit test
31
28
run : |
32
- pytest tests/
29
+ uvx --with . pytest tests/
33
30
- name : Validate README.md
34
31
# Ensure that the README renders correctly (required for uploading to PyPI).
35
32
run : |
33
+ uv pip install readme_renderer
36
34
python -m readme_renderer README.rst > /dev/null
Original file line number Diff line number Diff line change 58
58
from .utils import if_mousedown
59
59
60
60
if TYPE_CHECKING :
61
+ from typing_extensions import TypeAlias
62
+
61
63
from .python_input import PythonInput
62
64
63
65
HISTORY_COUNT = 2000
64
66
65
67
__all__ = ["HistoryLayout" , "PythonHistory" ]
66
68
67
- E = KeyPressEvent
69
+ E : TypeAlias = KeyPressEvent
68
70
69
71
HELP_TEXT = """
70
72
This interface is meant to select multiple lines from the
Original file line number Diff line number Diff line change 22
22
from .utils import document_is_multiline_python
23
23
24
24
if TYPE_CHECKING :
25
+ from typing_extensions import TypeAlias
26
+
25
27
from .python_input import PythonInput
26
28
27
29
__all__ = [
30
32
"load_confirm_exit_bindings" ,
31
33
]
32
34
33
- E = KeyPressEvent
35
+ E : TypeAlias = KeyPressEvent
34
36
35
37
36
38
@Condition
You can’t perform that action at this time.
0 commit comments