-
Notifications
You must be signed in to change notification settings - Fork 25
/
tox.ini
54 lines (46 loc) · 1.31 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
[tox]
envlist = py310,py311
isolated_build = True
skip_missing_interpreters=True
[testenv]
commands=
pytest --junitxml={env:SD_ARTIFACTS_DIR:artifacts}/test/pytest_{envname}.xml -o junit_suite_name={envname} --cov=serviceping --cov-report=xml:{env:SD_ARTIFACTS_DIR:artifacts}/test/coverage.xml tests/
deps=
pytest
pytest-cov
extras = test
passenv = CI,CODECOV_TOKEN,SD_*,SH_AUTH_SOCK,BUILD_NUMBER
[testenv:doc_build]
deps =
screwdrivercd
sphinx!=1.8.0
recommonmark
sphinx_markdown_tables
commands = {envpython} -m screwdrivercd.documentation
passenv = CI,CODECOV_TOKEN,SD_*,SH_AUTH_SOCK,BUILD_NUMBER
setenv =
DOCUMENTATION_PUBLISH = False
extras =
doc_build
[testenv:add_api_docs]
deps =
sphinx
commands =
{envpython} {envbindir}/sphinx-apidoc -T -e -M -o doc/source/ . "artifacts/*" "dist/*" "screwdriver/*" "scripts/*" setup.py "tests/*"
changedir = {toxinidir}
extras =
doc_build
passenv = CI,CODECOV_TOKEN,SD_*,SH_AUTH_SOCK,BUILD_NUMBER
install_command = {envpython} {envbindir}/pip install {opts} {packages}
list_dependencies_command = {envpython} {envbindir}/pip freeze
basepython = python3.6
[pycodestyle]
# ignore = E1,E2,E3,E4,E5
max-line-length = 160
[testenv:pycodestyle]
deps = pycodestyle
commands = pycodestyle serviceping
[testenv:pylint]
deps =
pylint
commands = pylint serviceping