From 1af43c9dc33186602ed0cb444f3012f5d903fa45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Wed, 11 Feb 2026 10:08:18 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20build(type):=20migrate=20from=20?= =?UTF-8?q?mypy=20to=20ty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mypy is being deprecated in favor of ty, which provides faster type checking with better performance characteristics. ty also offers more accurate type inference and improved developer experience. Configured ty to use Python 3.14 as the target version to align with the type checking environment and avoid false positives from conditional imports that only apply to older Python versions. Signed-off-by: Bernát Gábor --- pyproject.toml | 6 ++---- tox.ini | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index db7be9e..dea004c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -118,7 +118,5 @@ report.show_missing = true html.show_contexts = true html.skip_covered = false -[tool.mypy] -python_version = "3.11" -show_error_codes = true -strict = true +[tool.ty] +environment.python-version = "3.14" diff --git a/tox.ini b/tox.ini index b10d44f..897ec6d 100644 --- a/tox.ini +++ b/tox.ini @@ -47,10 +47,9 @@ commands = [testenv:type] description = run type check on code base deps = - mypy==1.19.1 + ty==0.0.16 commands = - mypy --strict src - mypy --strict tests + ty check --output-format concise --error-on-warning . [testenv:pkg_meta] description = check that the long description is valid