Skip to content

Commit

Permalink
Replace the flake8 env with a static env
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtucker committed Feb 19, 2020
1 parent 73c723b commit c28d0ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/pytest_mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
15 changes: 10 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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

0 comments on commit c28d0ae

Please sign in to comment.