enable mypy on CI for core stuff

This commit is contained in:
Dima Gerasimov 2020-05-04 18:30:17 +01:00 committed by karlicoss
parent 3912ef2460
commit 1f07e1a2a8
5 changed files with 42 additions and 21 deletions

23
tox.ini
View file

@ -1,6 +1,6 @@
[tox]
minversion = 3.5
envlist = py3 # ,pylint,mypy
envlist = py3,mypy # pylint
# TODO ugh. unclear how to reuse setup.cfg deps in tox
[testenv]
@ -27,19 +27,20 @@ skip_install = true
commands = ./demo.py
# [testenv:mypy]
# skip_install = true
# commands =
# pip install -e .[testing]
# python -m mypy --check-untyped src/cachew
[testenv:pylint]
# TODO wtf????
changedir = {toxworkdir}/{envname}/../..
[testenv:mypy]
skip_install = true
commands =
pip install -e .[testing]
./lint
# TODO fix it
# [testenv:pylint]
# # TODO wtf????
# changedir = {toxworkdir}/{envname}/../..
# skip_install = true
# commands =
# pip install -e .[testing]
# for now ignore import errors until I figure out how to import everything for CI checking..
# TODO FIXME ugh. fix later, after properly switched to my.config
# python -m pylint -E -d import-error my