-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (43 loc) · 1.05 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 = pyproject,flake8,mypy,py3{9,10,11,12,13}
[testenv]
setenv =
PYTHONUTF8 = 1
REPORT_NAME = {env:TOX_ENV:{envname}}
[testenv:py3{9,10,11,12,13}]
extras =
test
allowlist_externals =
coverage
commands =
pytest \
--cov httptoolkit \
--cov-report term-missing \
--cov-append \
--junitxml=.reports/{env:REPORT_NAME}_junit.xml \
{posargs}
commands_post =
coverage xml -o .reports/{env:REPORT_NAME}_coverage.xml
[testenv:pyproject]
skip_install = true
deps =
validate-pyproject[all]~=0.12.1
commands =
validate-pyproject pyproject.toml
[testenv:mypy]
skip_install = true
deps =
mypy~=1.1.1
commands =
mypy --junit-xml .reports/{env:REPORT_NAME}_junit.xml .
[testenv:flake8]
skip_install = true
deps =
flake8~=6.0.0
flake8-pyproject~=1.2.2
flake8-junit-report~=2.1.0
flake8-black~=0.3.6
commands =
flake8 --output-file .reports/{env:REPORT_NAME}_output.txt
commands_post =
flake8_junit .reports/{env:REPORT_NAME}_output.txt .reports/{env:REPORT_NAME}_junit.xml