forked from dwighthubbard/hostlists
-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
72 lines (61 loc) · 1.45 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
[config]
package_dir = hostlists
package_name = hostlists
[tox]
skip_missing_interpreters=True
envlist = py39,py310,py311
[testenv]
changedir = {toxinidir}
commands =
pytest -x --junitxml=pytest_{envname}.xml -o junit_suite_name={envname} --cov=hostlists --cov-report=xml:coverage.xml --cov-report term-missing tests/
deps =
pytest
pytest-cov
passenv =
SSH_AUTH_SOCK
BUILD_NUMBER
extras =
test
[testenv:build_docs]
deps=
sphinx
sphinx-pypi-upload
sphinx_rtd_theme
commands=
python setup.py build_sphinx
[pycodestyle]
filename= *.py
show-source = False
# H104 File contains nothing but comments
# H405 multi line docstring summary not separated with an empty line
# H803 Commit message should not end with a period (do not remove per list discussion)
# H904 Wrap long lines in parentheses instead of a backslash
ignore = H104,H405,H803,H904
builtins = _
exclude=.venv,.git,.tox,build,dist,docs,*lib/python*,*egg,tools,vendor,.update-venv,*.ini,*.po,*.pot
max-line-length = 160
[testenv:pycodestyle]
deps=
pycodestyle
commands =
pycodestyle hostlists
[testenv:lint_pylint]
deps =
isort<=4.2.15
six
pylint
commands = {envpython} {envbindir}/pylint --output-format=parseable {[config]package_dir}
passenv = SSH_AUTH_SOCK BUILD_NUMBER
extras =
pylint
[testenv:lint_mypy]
deps =
mypy
lxml
commands =
mypy --ignore-missing-imports --txt-report artifacts/mypy src/screwdrivercd
passenv =
SSH_AUTH_SOCK
BUILD_NUMBER
extras =
mypy