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:
1414
1515 steps :
1616 - uses : actions/checkout@v4
17-
1817 - uses : astral-sh/setup-uv@v5
1918 with :
2019 python-version : ${{ matrix.python-version }}
21- - name : Install Dependencies
20+ - name : Type Checking
2221 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
2624 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
3128 run : |
32- pytest tests/
29+ uvx --with . pytest tests/
3330 - name : Validate README.md
3431 # Ensure that the README renders correctly (required for uploading to PyPI).
3532 run : |
33+ uv pip install readme_renderer
3634 python -m readme_renderer README.rst > /dev/null
Original file line number Diff line number Diff line change 5858from .utils import if_mousedown
5959
6060if TYPE_CHECKING :
61+ from typing_extensions import TypeAlias
62+
6163 from .python_input import PythonInput
6264
6365HISTORY_COUNT = 2000
6466
6567__all__ = ["HistoryLayout" , "PythonHistory" ]
6668
67- E = KeyPressEvent
69+ E : TypeAlias = KeyPressEvent
6870
6971HELP_TEXT = """
7072This interface is meant to select multiple lines from the
Original file line number Diff line number Diff line change 2222from .utils import document_is_multiline_python
2323
2424if TYPE_CHECKING :
25+ from typing_extensions import TypeAlias
26+
2527 from .python_input import PythonInput
2628
2729__all__ = [
3032 "load_confirm_exit_bindings" ,
3133]
3234
33- E = KeyPressEvent
35+ E : TypeAlias = KeyPressEvent
3436
3537
3638@Condition
You can’t perform that action at this time.
0 commit comments