2014-01-06 03:53:26 +01:00
|
|
|
[tox]
|
2019-02-14 12:08:00 +01:00
|
|
|
envlist = py27,py37,pre-commit
|
2014-01-06 03:53:26 +01:00
|
|
|
|
|
|
|
[testenv]
|
2014-07-30 22:11:11 +02:00
|
|
|
usedevelop=True
|
2018-01-19 02:19:22 +01:00
|
|
|
whitelist_externals=mkdir
|
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
|
2016-01-15 01:12:07 +01:00
|
|
|
DOCKER_VERSION
|
2017-07-20 00:01:39 +02:00
|
|
|
SWARM_SKIP_*
|
|
|
|
SWARM_ASSUME_MULTINODE
|
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 =
|
2018-01-19 02:19:22 +01:00
|
|
|
mkdir -p .coverage-binfiles
|
2016-01-25 15:32:43 +01:00
|
|
|
py.test -v \
|
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
|
2018-01-19 02:19:22 +01:00
|
|
|
data_file = .coverage-binfiles/.coverage
|
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-11-10 21:26:04 +01:00
|
|
|
max-line-length = 105
|
2015-11-12 18:40:36 +01:00
|
|
|
# Set this high for now
|
2015-11-27 19:26:15 +01:00
|
|
|
max-complexity = 11
|
2015-02-14 20:09:55 +01:00
|
|
|
exclude = compose/packages
|
2016-01-25 15:32:43 +01:00
|
|
|
|
|
|
|
[pytest]
|
|
|
|
addopts = --tb=short -rxs
|