Skip to content

Commit 20f4890

Browse files
authored
🔧 build(type): migrate from mypy to ty (#192)
1 parent cd5d78c commit 20f4890

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,5 @@ report.show_missing = true
118118
html.show_contexts = true
119119
html.skip_covered = false
120120

121-
[tool.mypy]
122-
python_version = "3.11"
123-
show_error_codes = true
124-
strict = true
121+
[tool.ty]
122+
environment.python-version = "3.14"

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ commands =
4747
[testenv:type]
4848
description = run type check on code base
4949
deps =
50-
mypy==1.19.1
50+
ty==0.0.16
5151
commands =
52-
mypy --strict src
53-
mypy --strict tests
52+
ty check --output-format concise --error-on-warning .
5453

5554
[testenv:pkg_meta]
5655
description = check that the long description is valid

0 commit comments

Comments
 (0)