-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
39 lines (32 loc) · 969 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
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py3, pep8
[testenv]
basepython = python3
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
VENV_NAME={envname}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
PYTHONWARNINGS=ignore::DeprecationWarning
TESTS_DIR= ./esileapclient/tests
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:functional]
passenv = OS_*
commands = pytest esileapclient/tests/functional {posargs}
[testenv:py3]
commands =
pytest --cov=esileapclient {posargs:esileapclient/tests/unit}
[testenv:pep8]
commands = flake8 esileapclient {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,I100,I201
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build