2016-03-20 19:43:48 +01:00
|
|
|
[tox]
|
2020-02-02 23:47:19 +01:00
|
|
|
envlist = py35, py36, py37, py38, flake8
|
2016-03-20 19:43:48 +01:00
|
|
|
|
|
|
|
[testenv]
|
2016-10-13 14:25:57 +02:00
|
|
|
commands =
|
2019-01-04 00:30:31 +01:00
|
|
|
{envbindir}/py.test --tb=short \
|
2017-12-19 22:51:50 +01:00
|
|
|
--junitxml={toxworkdir}/junit-{envname}.xml \
|
2019-01-04 01:04:28 +01:00
|
|
|
--cov={envsitepackagesdir}/dosagelib \
|
|
|
|
--cov-branch \
|
|
|
|
--cov-config=tox.ini \
|
2017-12-19 22:51:50 +01:00
|
|
|
--cov-report=term \
|
|
|
|
--cov-report=xml:{toxworkdir}/cov-{envname}.xml \
|
2017-12-19 23:08:35 +01:00
|
|
|
--cov-report=html:{toxworkdir}/cov-{envname} \
|
2017-12-19 22:51:50 +01:00
|
|
|
{posargs}
|
2016-10-13 15:05:44 +02:00
|
|
|
|
2017-11-28 01:27:40 +01:00
|
|
|
|
|
|
|
passenv = CI TRAVIS TRAVIS_*
|
2016-03-20 19:43:48 +01:00
|
|
|
deps =
|
2016-03-20 19:53:43 +01:00
|
|
|
pytest-travis-fold
|
2017-12-19 22:51:50 +01:00
|
|
|
# Also install extra dependencies for tests.
|
|
|
|
extras =
|
|
|
|
css
|
|
|
|
test
|
2016-10-13 15:05:44 +02:00
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
commands =
|
2019-07-14 13:12:03 +02:00
|
|
|
- {envbindir}/flake8 --format=pylint \
|
|
|
|
--tee --output-file={toxworkdir}/flake8.log
|
2016-10-13 15:05:44 +02:00
|
|
|
deps =
|
2016-04-16 16:59:04 +02:00
|
|
|
flake8
|
|
|
|
flake8-coding
|
2016-04-16 23:24:07 +02:00
|
|
|
flake8-future-import
|
2016-04-10 03:47:01 +02:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
# we aim for 79, but this suppresses warnings for now...
|
2020-01-13 00:36:46 +01:00
|
|
|
max-line-length = 100
|
2019-06-30 19:50:28 +02:00
|
|
|
ignore = E127,E128,E241,FI12,FI14,FI15,FI50,FI51,FI53,FI54,FI55,W504
|
2016-04-16 23:24:07 +02:00
|
|
|
require-code = True
|
2020-02-02 23:47:19 +01:00
|
|
|
min-version = 3.5
|
2018-05-23 00:54:40 +02:00
|
|
|
|
2019-12-31 18:12:25 +01:00
|
|
|
# Duplicated for CodeClimate...
|
|
|
|
[pep8]
|
2020-01-13 00:36:46 +01:00
|
|
|
max-line-length = 100
|
2019-12-31 18:12:25 +01:00
|
|
|
ignore = E127,E128,E241,FI12,FI14,FI15,FI50,FI51,FI53,FI54,FI55,W504
|
|
|
|
|
2018-05-23 00:54:40 +02:00
|
|
|
[pytest]
|
|
|
|
filterwarnings = default
|
2019-12-29 02:29:22 +01:00
|
|
|
junit_family = xunit2
|