Migrate type checker to ty

Much faster than mypy. Matches usage of ruff from same developer.
This commit is contained in:
Kovid Goyal
2026-07-04 09:16:05 +05:30
parent bb452f2066
commit a65b4c70a7
45 changed files with 218 additions and 238 deletions

View File

@@ -23,15 +23,15 @@ jobs:
cc: [gcc, clang]
include:
- python: a
pyver: "3.11"
pyver: "3.12"
sanitize: 0
- python: b
pyver: "3.12"
pyver: "3.13"
sanitize: 1
- python: c
pyver: "3.13"
pyver: "3.14"
sanitize: 1
@@ -106,7 +106,7 @@ jobs:
${{ runner.os }}-golang-static-
- name: Install build-only deps
run: python -m pip install -r docs/requirements.txt ruff mypy types-requests types-docutils types-Pygments
run: python -m pip install -r docs/requirements.txt ruff ty types-requests types-docutils types-Pygments
- name: Run ruff
run: ruff check .
@@ -120,8 +120,8 @@ jobs:
- name: Build kitty
run: python setup.py build --debug
- name: Run mypy
run: which python && python -m mypy --version && ./test.py mypy
- name: Run type checking
run: which python && ./test.py type-check
- name: Run go vet
run: go version && go vet -tags testing ./...