Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down
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