Skip to content

Commit a8ac55b

Browse files
committed
Run mypy before running tests
So we test each python version. And this fail-fast the tests.
1 parent 12019e4 commit a8ac55b

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include doc/source/_templates/piwik.html
66
include doc/Makefile
77
include tox.ini
88
include .flake8
9+
include mypy.ini
910
include Makefile
1011
include README.rst CONTRIBUTING.rst CHANGELOG.rst
1112
include MANIFEST.in

mypy.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[mypy]
2+
# XXX: goal is to turn it on
3+
strict = False
4+
check_untyped_defs = True
5+
show_error_codes = True
6+
7+
[mypy-pytest.*]
8+
ignore_missing_imports = True
9+
10+
[mypy-salt.*]
11+
ignore_missing_imports = True
12+
13+
[mypy-winrm.*]
14+
ignore_missing_imports = True

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ tornado<5
66
salt
77
pywinrm
88
ansible>=3,<4
9+
mypy

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ description = Runs unittests
1010
deps=
1111
-rtest-requirements.txt
1212
commands=
13+
{envpython} -m mypy testinfra test
1314
{envpython} -m pytest {posargs:-v -n 4 --cov testinfra --cov-report xml --cov-report term test}
1415
usedevelop=True
1516
passenv=HOME TRAVIS DOCKER_CERT_PATH DOCKER_HOST DOCKER_TLS_VERIFY WSL_DISTRO_NAME

0 commit comments

Comments
 (0)