-
Notifications
You must be signed in to change notification settings - Fork 32
/
tox.ini
84 lines (71 loc) · 1.61 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[tox]
skip_missing_interpreters = true
envlist = py37,py38,py39,pylint,flake8,docs
[testenv]
extras = tests
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
commands =
pytest \
--cov "{envsitepackagesdir}/zennit" \
--cov-config "{toxinidir}/tox.ini" \
{posargs:.}
[testenv:coverage]
deps =
coverage
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage
skip_install = true
commands =
coverage combine
coverage report -m
depends = py37,py38,py39
[testenv:docs]
basepython = python3.9
extras = docs
commands =
sphinx-build \
--color \
-W \
--keep-going \
-d "{toxinidir}/docs/doctree" \
-b html \
"{toxinidir}/docs/source" \
"{toxinidir}/docs/build" \
{posargs}
[testenv:flake8]
basepython = python3.9
changedir = {toxinidir}
deps =
flake8
commands =
flake8 "{toxinidir}/src/zennit" "{toxinidir}/tests" {posargs}
[testenv:pylint]
basepython = python3.9
deps =
pylint
pytest
changedir = {toxinidir}
commands =
pylint --rcfile=pylintrc --output-format=parseable {toxinidir}/src/zennit {toxinidir}/tests
[flake8]
# R902 Too many instance attributes
# R913 Too many arguments
# R914 Too many local variables
# W503 Line-break before binary operator
ignore = R902,R913,R914,W503
exclude=.venv,.git,.tox,build,dist,docs,*egg,*.ini
max-line-length = 120
[pytest]
testpaths = tests
addopts = -ra -l
[coverage:run]
parallel = true
branch = true
[coverage:report]
skip_covered = true
show_missing = true
[coverage:paths]
source = src/zennit
*/.tox/*/lib/python*/site-packages/zennit
*/src/zennit