Skip to content

Commit 030790f

Browse files
Add typos to workflow.
1 parent 1527d05 commit 030790f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,19 @@ jobs:
2121
run: |
2222
uvx --with . mypy src/ptpython
2323
- name: Code formatting
24+
if: ${{ matrix.python-version == '3.13' }}
2425
run: |
2526
uvx ruff check .
2627
uvx ruff format --check .
28+
- name: Typos
29+
if: ${{ matrix.python-version == '3.13' }}
30+
run: |
31+
uvx typos .
2732
- name: Unit test
2833
run: |
2934
uvx --with . pytest tests/
3035
- name: Validate README.md
36+
if: ${{ matrix.python-version == '3.13' }}
3137
# Ensure that the README renders correctly (required for uploading to PyPI).
3238
run: |
3339
uv pip install readme_renderer

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ lint.ignore = [
8585
known-first-party = ["ptpython"]
8686
known-third-party = ["prompt_toolkit", "pygments", "asyncssh"]
8787

88+
[tool.typos.default]
89+
extend-ignore-re = [
90+
"impotr" # Intentional typo in: ./examples/ptpython_config/config.py
91+
]
8892

8993
[build-system]
9094
requires = ["setuptools>=68"]

0 commit comments

Comments
 (0)