forked from cyrusv/confluent-docker-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (38 loc) · 1.01 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]
envlist = test
toxworkdir = /var/tmp
[testenv]
# Consolidating all deps here instead of cleanly/separately in test/style/cover so we
# have a single env (platform) to work with, which makes debugging easier (like which env?).
# Not as clean but easier to work with for dev, which is better.
deps =
-rrequirements.txt
flake8
pytest
pytest-xdist
pytest-cov
sphinx!=1.2b2
install_command = pip install -U {packages}
recreate = False
skipsdist = True
usedevelop = True
setenv =
PIP_PROCESS_DEPENDENCY_LINKS=1
PIP_DEFAULT_TIMEOUT=60
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
basepython = python
envdir = {toxworkdir}/docker_utils
[testenv:test]
commands =
py.test {env:PYTESTARGS:} test
[testenv:style]
commands =
flake8 --config tox.ini
[testenv:cover]
commands =
py.test {env:PYTESTARGS:} --cov . --cov-report=xml --cov-report=html --cov-report=term test
[flake8]
ignore = E111,E121,W292,E123,E226
max-line-length = 160
[pytest]
addopts = -n 4