2014-01-06 03:53:26 +01:00
|
|
|
[tox]
|
2014-08-19 23:36:46 +02:00
|
|
|
envlist = py27,py34,pre-commit
|
2014-01-06 03:53:26 +01:00
|
|
|
|
|
|
|
[testenv]
|
2014-07-30 22:11:11 +02:00
|
|
|
usedevelop=True
|
2015-08-24 21:15:08 +02:00
|
|
|
passenv =
|
|
|
|
LD_LIBRARY_PATH
|
2015-08-31 23:29:25 +02:00
|
|
|
DOCKER_HOST
|
2015-10-01 13:26:55 +02:00
|
|
|
DOCKER_CERT_PATH
|
|
|
|
DOCKER_TLS_VERIFY
|
2015-07-03 04:35:20 +02:00
|
|
|
setenv =
|
|
|
|
HOME=/tmp
|
2014-07-15 21:59:25 +02:00
|
|
|
deps =
|
2015-10-07 17:10:08 +02:00
|
|
|
-rrequirements.txt
|
2015-09-01 22:24:07 +02:00
|
|
|
-rrequirements-dev.txt
|
2014-01-06 03:53:26 +01:00
|
|
|
commands =
|
2015-10-07 17:10:08 +02:00
|
|
|
py.test -v -rxs \
|
2015-09-01 22:24:07 +02:00
|
|
|
--cov=compose \
|
|
|
|
--cov-report html \
|
|
|
|
--cov-report term \
|
|
|
|
--cov-config=tox.ini \
|
2015-09-03 20:11:44 +02:00
|
|
|
{posargs:tests}
|
2014-07-15 22:22:16 +02:00
|
|
|
|
2015-08-24 21:15:08 +02:00
|
|
|
[testenv:pre-commit]
|
|
|
|
skip_install = True
|
|
|
|
deps =
|
|
|
|
pre-commit
|
|
|
|
commands =
|
|
|
|
pre-commit install
|
|
|
|
pre-commit run --all-files
|
|
|
|
|
2015-09-01 22:24:07 +02:00
|
|
|
# Coverage configuration
|
|
|
|
[run]
|
|
|
|
branch = True
|
2014-08-19 23:36:46 +02:00
|
|
|
|
2015-09-01 22:24:07 +02:00
|
|
|
[report]
|
|
|
|
show_missing = true
|
|
|
|
|
|
|
|
[html]
|
|
|
|
directory = coverage-html
|
|
|
|
# end coverage configuration
|
2014-08-19 23:36:46 +02:00
|
|
|
|
2014-07-15 22:22:16 +02:00
|
|
|
[flake8]
|
2015-08-26 18:53:11 +02:00
|
|
|
# Allow really long lines for now
|
|
|
|
max-line-length = 140
|
2015-11-12 18:40:36 +01:00
|
|
|
# Set this high for now
|
|
|
|
max-complexity = 20
|
2015-02-14 20:09:55 +01:00
|
|
|
exclude = compose/packages
|