Skip to content

Commit ff8dcd8

Browse files
committed
add poe task to run 'ty' type-checker
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
1 parent a8de754 commit ff8dcd8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ test.cmd = "pytest"
108108
"test:skipped".cmd = "pytest --quiet --collect-only -m skip --no-cov"
109109
"test:skipped".help = "Show skipped tests without running all tests"
110110

111+
# Add 'ty' type checker - this is still alpha software and has false positives
112+
# compared to 'mypy', but suspect it will exentually replace it.
113+
ty.help = "Run the 'ty' type-checker (Alpha pre-release version)"
114+
ty.cmd = "uvx ty check --output-format concise"
115+
111116
# run all linting checks in sequence. we want to run them all, even if one fails
112117
lint.ignore_fail = "return_non_zero"
113118
lint.sequence = ["format", "ruff", "mypy", "markdown"]

0 commit comments

Comments
 (0)