dosage/tox.ini

54 lines
1.2 KiB
INI
Raw Normal View History

2016-03-20 18:43:48 +00:00
[tox]
2022-02-14 22:51:03 +00:00
envlist = py37, py38, py39, py310, flake8
isolated_build = True
2016-03-20 18:43:48 +00:00
2021-04-30 19:47:21 +00:00
[gh-actions]
python =
3.7: py37
3.8: py38
2021-10-10 16:56:11 +00:00
3.9: py39
3.10: py310, flake8
2021-04-30 19:47:21 +00:00
2016-03-20 18:43:48 +00:00
[testenv]
commands =
{envbindir}/py.test --tb=short \
--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 \
--cov-report=term \
--cov-report=xml:{toxworkdir}/reports/{envname}/coverage.xml \
--cov-report=html:{toxworkdir}/reports/{envname}/htmlcov \
{posargs}
# Also install extra dependencies for tests.
extras =
css
dev
[testenv:flake8]
commands =
2019-07-14 11:12:03 +00:00
- {envbindir}/flake8 --format=pylint \
--tee --output-file={toxworkdir}/flake8.log
[flake8]
# we aim for 79, but this suppresses warnings for now...
2020-01-12 23:36:46 +00:00
max-line-length = 100
2022-02-14 22:51:03 +00:00
ignore = E127,E128,E241,FI12,FI14,FI15,FI18,FI50,FI51,FI53,FI54,FI55,W504
require-code = True
no-accept-encodings = True
2022-02-14 22:51:03 +00:00
min-version = 3.7
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
2022-02-14 22:51:03 +00:00
ignore = E127,E128,E241,FI12,FI14,FI15,FI18,FI50,FI51,FI53,FI54,FI55,W504
2019-12-31 17:12:25 +00:00
2018-05-22 22:54:40 +00:00
[pytest]
filterwarnings = default
junit_family = xunit2
[isort]