-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
103 lines (89 loc) · 1.8 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[tox]
envlist =
py310,
pycodestyle,
coverage,
docs,
mypy
[testenv]
commands =
py.test -v tests {posargs}
[py]
deps=
-r requirements.txt
mock
requests_mock
pytest
pytest-pylint
pytest-cov
requests-mock
[pep8]
show-source=True
statistics=True
exclude=.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,setup.py,docs
[testenv:py310]
deps=
{[py]deps}
basepython = python3.10
commands = python -m pytest -v --cov=pubtools.iib --cov-report=html --cov-report=xml {posargs}
[testenv:pypy3]
deps=
{[py]deps}
basepython = pypy3
[testenv:pycodestyle]
deps=
{[py]deps}
pycodestyle
black
basepython = python3.10
commands =
pycodestyle --config=.pycodestyle --first src/pubtools
black --check src/pubtools
exclude=.svn,cvs,.bzr,.hg,.git,__pycache__,.tox,setup.py,docs
[testenv:pydocstyle]
deps=
pydocstyle
commands = pydocstyle src/pubtools
basepython = python3.10
exclude=.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,setup.py,docs
[testenv:docs]
deps=
Sphinx
sphinx_rtd_theme
sphinx-argparse
commands = sphinx-build -M html docs/source docs/build
[testenv:coverage]
deps=
coverage
commands = coverage report --fail-under 98
[testenv:mypy]
description = mypy checks
basepython = python3.10
deps =
-r requirements.txt
types-requests
types-setuptools
mypy
commands =
mypy src/pubtools
[testenv:cov-travis]
passenv =
TRAVIS,TRAVIS_*
deps=
{[py]deps}
pytest-cov
coveralls
usedevelop=true
commands=
pytest --cov=pubtools.iib {posargs}
coveralls
[testenv:pidiff]
deps=pidiff
skip_install=true
commands=pidiff pubtools-iib .
[testenv:py3-bandit-exitzero]
deps = bandit<=1.7.5
commands = bandit -r . -l --exclude './.tox' --exit-zero
[testenv:py3-bandit]
deps = bandit<=1.7.5
commands = bandit -r . -ll --exclude './.tox'