-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathtox.ini
60 lines (54 loc) · 1.28 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[tox]
minversion = 2.0
skipsdist = True
envlist = py35,
py36,
py37,
pep8,
docs,
cover
[testenv]
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
PYTHONWARNINGS=default::DeprecationWarning
TESTS_DIR=./tests/
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
commands =
pytest tests {posargs}
[flake8]
ignore = E722, W503
builtins =_
exclude =venv,docs,.git,.tox,dist,doc,*lib/python*,*egg,build
application_import_names = touvlo
import-order-style = pep8
[testenv:pep8]
commands = flake8
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
whitelist_externals = make
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/docs/requirements.txt
changedir={toxinidir}/docs
commands =
make html
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
commands =
pytest --cov ./touvlo --cov-report term-missing --cov-report xml
[testenv:venv]
setenv =
PYTHONPATH = {toxinidir}
PYTHONHASHSEED=0
deps =
-r{toxinidir}/dev-requirements.txt
commands = {posargs}