mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Run mypy on CI
This commit is contained in:
parent
7298de646a
commit
7d690bbad2
2 changed files with 9 additions and 5 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -75,14 +75,18 @@ jobs:
|
|||
with:
|
||||
python-version: 3.8
|
||||
|
||||
- name: Check python code
|
||||
run: |
|
||||
pip install flake8 sphinx
|
||||
python -m flake8 --count .
|
||||
- name: Install build-only deps
|
||||
run: pip install flake8 mypy sphinx
|
||||
|
||||
- name: Run pyflakes
|
||||
run: python -m flake8 --count .
|
||||
|
||||
- name: Build kitty package
|
||||
run: python .github/workflows/ci.py package
|
||||
|
||||
- name: Run mypy
|
||||
run: python test.py mypy
|
||||
|
||||
- name: Build man page
|
||||
run: make FAIL_WARN=-W man
|
||||
|
||||
|
|
|
|||
2
test.py
2
test.py
|
|
@ -72,7 +72,7 @@ def type_check() -> NoReturn:
|
|||
generate_stub()
|
||||
from kitty.options_stub import generate_stub # type: ignore
|
||||
generate_stub()
|
||||
os.execlp('mypy', 'mypy', '--pretty')
|
||||
os.execlp(sys.executable, 'python', '-m', 'mypy', '--pretty')
|
||||
|
||||
|
||||
def run_tests():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue