-
Notifications
You must be signed in to change notification settings - Fork 59
/
tox.ini
49 lines (41 loc) · 1.08 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[tox]
envlist = py38, py39, py310, py311, py312, py313, flake8
isolated_build = True
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313, flake8
[testenv]
commands =
{envbindir}/pytest --tb=short \
--junitxml={toxworkdir}/reports/{envname}/junit.xml \
--alluredir={toxworkdir}/reports/{envname}/allure-data \
--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 =
- {envbindir}/flake8 --format=pylint \
--tee --output-file={toxworkdir}/flake8.log
extras =
lint
# Duplicated for CodeClimate...
[pep8]
max-line-length = 100
ignore = E127,E128,E241,FI12,FI14,FI15,FI18,FI50,FI51,FI53,FI54,FI55,FI58,W504
[pytest]
filterwarnings = default
junit_family = xunit2
[isort]