forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (38 loc) · 1.14 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
42
43
44
[tox]
minversion = 3.5.1
skip_missing_interpreters = true
envlist = py35,
py36,
py37,
lint,
type,
docs
isolated_build = true
[testenv]
description = run the test driver with {basepython}
passenv = PYTEST_XDIST_WORKER_COUNT NEWSEMANAL
deps = -rtest-requirements.txt
commands = pytest {posargs}
[testenv:.package]
deps =
[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)'