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