File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -18,19 +18,18 @@ jobs:
18
18
- uses : astral-sh/setup-uv@v5
19
19
with :
20
20
python-version : ${{ matrix.python-version }}
21
- - name : Install Dependencies
22
- run : |
23
- uv pip install . ruff mypy pytest readme_renderer
24
- uv pip list
25
21
- name : Type Checker
26
22
run : |
27
- mypy ptpython
28
- ruff check .
29
- ruff format --check .
30
- - name : Run Tests
23
+ uvx mypy ptpython
24
+ - name : Code formatting
25
+ run : |
26
+ uvx ruff check .
27
+ uvx ruff format --check .
28
+ - name : Tests
31
29
run : |
32
- pytest tests/
30
+ uvx --with . pytest tests/
33
31
- name : Validate README.md
34
32
# Ensure that the README renders correctly (required for uploading to PyPI).
35
33
run : |
34
+ uv pip install readme_renderer
36
35
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