forked from kyrus/python-junit-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
58 lines (48 loc) · 1.11 KB
/
tox.ini
File metadata and controls
58 lines (48 loc) · 1.11 KB
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
49
50
51
52
53
54
55
56
57
58
[tox]
envlist = dev-pylint,dev,black-check
#isolated_build = true
sitepackages = False
[testenv]
basepython = python3
# "usedevelop = true" is short cut to "python setup.py develop"
#usedevelop = true
deps =
black: black
dev: -rrequirements.txt
[testenv:dev-pylint]
whitelist_externals = cat
commands =
pylint --exit-zero --output=pylint.log junit_xml/
cat pylint.log
[testenv:dev]
commands =
pytest -s --junitxml=reports/summary.xml --cov=junit_xml \
--cov-report=term-missing --cov-report=xml --cov-report=html -W ignore {posargs}
coverage xml
[testenv:black-format]
changedir = {toxinidir}/junit_xml
commands = black --line-length 100 .
[testenv:black-check]
changedir = {toxinidir}/junit_xml
commands = black --check --diff --line-length 100 .
[testenv:dev-flake8]
commands =
pytest --flake8 {posargs}
# Release tooling
[testenv:do-wheel]
skip_install = true
deps =
wheel
setuptools
build
commands =
python -m build .
[tool:pytest]
testpaths = tests
norecursedirs = .git .tox build dist venv
[coverage:paths]
source =
src
*/site-packages
[tool:black]
line-length = 100