Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,19 @@ jobs:
run: |
uvx --with . mypy src/ptpython
- name: Code formatting
if: ${{ matrix.python-version == '3.13' }}
run: |
uvx ruff check .
uvx ruff format --check .
- name: Typos
if: ${{ matrix.python-version == '3.13' }}
run: |
uvx typos .
- name: Unit test
run: |
uvx --with . pytest tests/
- name: Validate README.md
if: ${{ matrix.python-version == '3.13' }}
# Ensure that the README renders correctly (required for uploading to PyPI).
run: |
uv pip install readme_renderer
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ lint.ignore = [
known-first-party = ["ptpython"]
known-third-party = ["prompt_toolkit", "pygments", "asyncssh"]

[tool.typos.default]
extend-ignore-re = [
"impotr" # Intentional typo in: ./examples/ptpython_config/config.py
]

[build-system]
requires = ["setuptools>=68"]
Expand Down
Loading