Run mypy on CI

This commit is contained in:
Kovid Goyal 2020-03-09 18:24:55 +05:30
parent 7298de646a
commit 7d690bbad2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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():