forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (36 loc) · 1.1 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[tox]
minversion = 2.9.1
skip_missing_interpreters = true
envlist = py34,
py35,
py36,
py37,
lint,
type,
docs
[testenv]
description = run the test driver with {basepython}
passenv = PYTEST_XDIST_WORKER_COUNT
deps = -rtest-requirements.txt
commands = pytest {posargs}
[testenv:lint]
description = check the code style
basepython = python3.7
commands = flake8 -j0 {posargs}
[testenv:type]
description = type check ourselves
basepython = python3.7
commands = python3 -m mypy --config-file mypy_self_check.ini -p mypy
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.7
deps = -rdocs/requirements-docs.txt
commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
[testenv:dev]
description = generate a DEV environment, that has all project libraries
usedevelop = True
basepython = python3.7
deps = -rtest-requirements.txt
-rdocs/requirements-docs.txt
commands = python -m pip list --format=columns
python -c 'import sys; print(sys.executable)'