-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
57 lines (51 loc) · 881 Bytes
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
[tox]
envlist =
py37
py38
lint
docs
coverage
[testenv]
deps =
pytest
setenv =
DISPLAY = :0
commands = pytest -vv -s tests/{posargs}
[testenv:coverage]
deps =
{[testenv]deps}
pytest-cov
commands = pytest -v --cov-report term-missing --cov-report xml --cov=ambient tests
[testenv:format]
skip_install = True
deps = black
commands =
black ambient
black setup.py
black tests
[testenv:lint]
skip_install = True
deps =
mypy
black
pylint
pydocstyle
pycodestyle
commands =
black --check ambient
pycodestyle ambient
pydocstyle ambient
pylint ambient
mypy --ignore-missing-imports --disallow-untyped-defs ambient
[testenv:docs]
changedir = docs
deps =
sphinx
commands =
make html SPHINXOPTS=-W
whitelist_externals =
make
[travis]
python =
3.7: py37
3.8: py38, lint, docs, coverage