-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
98 lines (83 loc) · 1.85 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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
minversion = 3.15
envlist = black, pep8, pylint, mypy, bandit, pep257, py{37,38,39,py3}, docs
skipsdist = True
skip_missing_interpreters = True
[testenv]
recreate = True
usedevelop = False
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
setev = PYTHONDONTWRITEBYTECODE=1
deps =
sphinx
-r{toxinidir}/pytest_requirements.txt
pytest-html
py3{7,8,9}-nocov: Cython
-r{toxinidir}/CI_REQUIREMENTS.txt
commands =
pip freeze
python setup.py develop -v
py.test --cov-report html --self-contained-html --html=report.html --cov=binfield
coverage report --fail-under 95
[testenv:venv]
commands = {posargs:}
[testenv:pep8]
deps =
-r{toxinidir}/flake8_requirements.txt
commands = flake8 binfield
[testenv:pep257]
deps =
pydocstyle
commands = pydocstyle -v binfield
[testenv:install]
deps =
commands = pip install ./ -vvv -U
[testenv:pylint]
usedevelop = True
deps =
pylint>=2.5.2
-r{toxinidir}/CI_REQUIREMENTS.txt
commands =
python setup.py --version clean
pylint binfield
[testenv:docs]
deps =
sphinx
commands = python setup.py build_sphinx clean
[testenv:readme]
deps =
twine
commands =
python setup.py sdist clean
twine check {toxinidir}/dist/*
[testenv:bandit]
deps = bandit
commands = bandit -r binfield
[testenv:dep-graph]
deps =
.
pipdeptree
commands = pipdeptree
[testenv:black]
deps =
black
regex
commands =
black binfield
[testenv:mypy]
deps =
mypy>=0.720
lxml
-r{toxinidir}/CI_REQUIREMENTS.txt
commands =
python setup.py --version clean
mypy --strict --xslt-html-report mypy_report -p binfield
[testenv:isort]
deps =
isort
commands =
isort binfield