Run mypy on CI
This commit is contained in:
parent
7298de646a
commit
7d690bbad2
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -75,14 +75,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
|
|
||||||
- name: Check python code
|
- name: Install build-only deps
|
||||||
run: |
|
run: pip install flake8 mypy sphinx
|
||||||
pip install flake8 sphinx
|
|
||||||
python -m flake8 --count .
|
- name: Run pyflakes
|
||||||
|
run: python -m flake8 --count .
|
||||||
|
|
||||||
- name: Build kitty package
|
- name: Build kitty package
|
||||||
run: python .github/workflows/ci.py package
|
run: python .github/workflows/ci.py package
|
||||||
|
|
||||||
|
- name: Run mypy
|
||||||
|
run: python test.py mypy
|
||||||
|
|
||||||
- name: Build man page
|
- name: Build man page
|
||||||
run: make FAIL_WARN=-W man
|
run: make FAIL_WARN=-W man
|
||||||
|
|
||||||
|
|||||||
2
test.py
2
test.py
@ -72,7 +72,7 @@ def type_check() -> NoReturn:
|
|||||||
generate_stub()
|
generate_stub()
|
||||||
from kitty.options_stub import generate_stub # type: ignore
|
from kitty.options_stub import generate_stub # type: ignore
|
||||||
generate_stub()
|
generate_stub()
|
||||||
os.execlp('mypy', 'mypy', '--pretty')
|
os.execlp(sys.executable, 'python', '-m', 'mypy', '--pretty')
|
||||||
|
|
||||||
|
|
||||||
def run_tests():
|
def run_tests():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user