mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
Migrate type checker to ty
Much faster than mypy. Matches usage of ruff from same developer.
This commit is contained in:
parent
bb452f2066
commit
a65b4c70a7
45 changed files with 218 additions and 238 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -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 ./...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue