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:
1818 - uses : astral-sh/setup-uv@v5
1919 with :
2020 python-version : ${{ matrix.python-version }}
21- - name : Install Dependencies
21+ - name : Type Checking
2222 run : |
23- uv pip install . ruff mypy pytest readme_renderer
24- uv pip list
25- - name : Type Checker
23+ uvx mypy ptpython
24+ - name : Code formatting
2625 run : |
27- mypy ptpython
28- ruff check .
29- ruff format --check .
30- - name : Run Tests
26+ uvx ruff check .
27+ uvx ruff format --check .
28+ - name : Unit test
3129 run : |
32- pytest tests/
30+ uvx --with . pytest tests/
3331 - name : Validate README.md
3432 # Ensure that the README renders correctly (required for uploading to PyPI).
3533 run : |
34+ uv pip install readme_renderer
3635 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