Skip to content

Commit 179c59a

Browse files
authored
Merge pull request #76 from dmtucker/static
Replace the flake8 env with a static env
2 parents 73c723b + 3698de5 commit 179c59a

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ python:
88
- '3.8'
99
install: pip install 'tox-travis ~= 0.12.0'
1010
script: tox
11+
jobs:
12+
include:
13+
- name: Static Analysis
14+
python: '3.8'
15+
script: tox -e static
1116
deploy:
1217
provider: pypi
1318
user: __token__

src/pytest_mypy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import os
55
from tempfile import NamedTemporaryFile
66

7-
from filelock import FileLock
8-
import pytest
7+
from filelock import FileLock # type: ignore
98
import mypy.api
9+
import pytest # type: ignore
1010

1111

1212
mypy_argv = []

tox.ini

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ envlist =
88
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}
99
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}
1010
py38-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.71, 0.7x}
11-
flake8
11+
static
1212

1313
[testenv]
1414
deps =
@@ -82,7 +82,12 @@ deps =
8282
pytest-randomly ~= 2.1.1
8383
commands = py.test -p no:mypy -n auto --cov pytest_mypy --cov-fail-under 100 --cov-report term-missing {posargs}
8484

85-
[testenv:flake8]
86-
skip_install = true
87-
deps = flake8 ~= 3.7.7
88-
commands = flake8 setup.py src tests
85+
[testenv:static]
86+
deps =
87+
bandit ~= 1.6.2
88+
flake8 ~= 3.7.9
89+
mypy >= 0.760, < 0.770
90+
commands =
91+
bandit --recursive src
92+
flake8 setup.py src tests
93+
mypy src

0 commit comments

Comments
 (0)