scripts: switch to using ty for type checking
- ID
ef22e59- date
2026-04-20 04:44:48+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
35529fc- message
scripts: switch to using ty for type checking- changed files
3 files, 5 additions, 13 deletions
Changed files
dev_requirements.in (10) → dev_requirements.in (8)
diff --git a/dev_requirements.in b/dev_requirements.in
index 8881953..6a9bb11 100644
--- a/dev_requirements.in
+++ b/dev_requirements.in
@@ -1,2 +1,2 @@
-mypy
ruff
+ty
dev_requirements.txt (447) → dev_requirements.txt (297)
diff --git a/dev_requirements.txt b/dev_requirements.txt
index 497040b..99cab8a 100644
--- a/dev_requirements.txt
+++ b/dev_requirements.txt
@@ -1,14 +1,6 @@
# This file was autogenerated by uv via the following command:
-# uv pip compile dev_requirements.in --output-file=dev_requirements.txt --exclude-newer=P7D --exclude-newer-package alexwlchan-chives=false --no-cache
-librt==0.8.1
- # via mypy
-mypy==1.19.1
+# uv pip compile dev_requirements.in --output-file=dev_requirements.txt --exclude-newer=P7D --exclude-newer-package alexwlchan-chives=false
+ruff==0.15.10
# via -r dev_requirements.in
-mypy-extensions==1.1.0
- # via mypy
-pathspec==1.0.4
- # via mypy
-ruff==0.15.8
+ty==0.0.29
# via -r dev_requirements.in
-typing-extensions==4.15.0
- # via mypy
scripts/run_snippets_tests.sh (304) → scripts/run_snippets_tests.sh (308)
diff --git a/scripts/run_snippets_tests.sh b/scripts/run_snippets_tests.sh
index 4cd1700..5a6499e 100755
--- a/scripts/run_snippets_tests.sh
+++ b/scripts/run_snippets_tests.sh
@@ -12,5 +12,5 @@ run_command() {
run_command 'ruff format'
run_command 'ruff check *.py'
-run_command 'mypy *.py'
+run_command 'ty check *.py'
run_command 'python3 create_snippets.py'