diff --git a/.travis.yml b/.travis.yml index 9ce497b..50172dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,11 @@ python: - '3.8' install: pip install 'tox-travis ~= 0.12.0' script: tox +jobs: + include: + - name: Static Analysis + python: '3.8' + script: tox -e static deploy: provider: pypi user: __token__ diff --git a/src/pytest_mypy.py b/src/pytest_mypy.py index 048a4fa..ac64289 100644 --- a/src/pytest_mypy.py +++ b/src/pytest_mypy.py @@ -4,9 +4,9 @@ import os from tempfile import NamedTemporaryFile -from filelock import FileLock -import pytest +from filelock import FileLock # type: ignore import mypy.api +import pytest # type: ignore mypy_argv = [] diff --git a/tox.ini b/tox.ini index a65c5e2..e3942d8 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,7 @@ envlist = py36-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x} py37-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x} py38-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.71, 0.7x} - flake8 + static [testenv] deps = @@ -82,7 +82,12 @@ deps = pytest-randomly ~= 2.1.1 commands = py.test -p no:mypy -n auto --cov pytest_mypy --cov-fail-under 100 --cov-report term-missing {posargs} -[testenv:flake8] -skip_install = true -deps = flake8 ~= 3.7.7 -commands = flake8 setup.py src tests +[testenv:static] +deps = + bandit ~= 1.6.2 + flake8 ~= 3.7.9 + mypy >= 0.760, < 0.770 +commands = + bandit --recursive src + flake8 setup.py src tests + mypy src