scripts: switch from mypy to ty for type checking
- ID
b1f75b6- date
2026-05-27 06:43:35+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
09f0b3f- message
scripts: switch from mypy to ty for type checking- changed files
3 files, 4 additions, 12 deletions
Changed files
dev_requirements.in (47) → dev_requirements.in (45)
diff --git a/dev_requirements.in b/dev_requirements.in
index fd3724f..26794a2 100644
--- a/dev_requirements.in
+++ b/dev_requirements.in
@@ -1,6 +1,6 @@
-r requirements.txt
coverage
-mypy
pytest
ruff
+ty
dev_requirements.txt (782) → dev_requirements.txt (641)
diff --git a/dev_requirements.txt b/dev_requirements.txt
index 80197fb..2cf0fce 100644
--- a/dev_requirements.txt
+++ b/dev_requirements.txt
@@ -6,20 +6,12 @@ iniconfig==2.3.0
# via pytest
jinja2==3.1.6
# via -r requirements.txt
-librt==0.7.3
- # via mypy
markupsafe==3.0.3
# via
# -r requirements.txt
# jinja2
-mypy==1.19.1
- # via -r dev_requirements.in
-mypy-extensions==1.1.0
- # via mypy
packaging==25.0
# via pytest
-pathspec==0.12.1
- # via mypy
pluggy==1.6.0
# via pytest
pygments==2.19.2
@@ -28,5 +20,5 @@ pytest==9.0.2
# via -r dev_requirements.in
ruff==0.14.10
# via -r dev_requirements.in
-typing-extensions==4.15.0
- # via mypy
+ty==0.0.38
+ # via -r dev_requirements.in
scripts/run_colour_scheme_tests.sh (651) → scripts/run_colour_scheme_tests.sh (655)
diff --git a/scripts/run_colour_scheme_tests.sh b/scripts/run_colour_scheme_tests.sh
index 6fb75c5..b85aa25 100755
--- a/scripts/run_colour_scheme_tests.sh
+++ b/scripts/run_colour_scheme_tests.sh
@@ -29,6 +29,6 @@ then
fi
run_command 'ruff check'
-run_command 'mypy *.py'
+run_command 'ty check *.py'
run_command "python3 -m coverage run -m pytest -q"
report_coverage