Skip to content

Commit 5f9b194

Browse files
committed
Try out ty for type checking
For now it will be run in parallel with mypy.
1 parent 38a5d37 commit 5f9b194

3 files changed

Lines changed: 33 additions & 1 deletion

File tree

.github/workflows/linter.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ jobs:
5757
- name: Check ruff linting
5858
run: poetry run ruff check ssh_zone_handler/ tests/
5959

60-
- name: Verify type hints
60+
- name: Use ty to verify type hints
61+
run: poetry run ty check --output-format=github
62+
63+
- name: Use mypy to verify type hints
6164
run: poetry run mypy --strict ssh_zone_handler/
6265

6366
- name: Run Pytest

poetry.lock

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dev = [
2222
"pytest-mock (>=3.15.1)",
2323
"types-pyyaml (>=6.0.12.20250915,<7)",
2424
"ruff (>=0.14.2)",
25+
"ty (>=0.0.11)",
2526
]
2627

2728
[project.scripts]

0 commit comments

Comments
 (0)