-
Notifications
You must be signed in to change notification settings - Fork 33
/
tox.ini
75 lines (69 loc) · 2.4 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
[tox]
envlist = py{37,38,39,310,311}, docs
skip_missing_interpreters = true
[testenv]
whitelist_externals = cp
deps = -rrequirements-tests.txt
install_command = pip install --upgrade {packages}
passenv = PYTHONASYNCIODEBUG
usedevelop = True
commands = {envbindir}/pytest \
{posargs:\
--color=yes \
--log-format='%(levelname)s %(relativeCreated)2.2f %(filename)s:%(lineno)d %(message)s' \
--cov={toxinidir}/telnetlib3 \
--cov-config={toxinidir}/.coveragerc \
--strict --verbose --verbose \
--junit-xml=results.{envname}.xml \
--durations=10 \
--timeout=15 \
} telnetlib3/tests
[testenv:develop]
basepython = python3.11
commands = {envbindir}/pytest \
--capture=no \
--looponfail \
--log-format='%(relativeCreated)2.2f %(filename)s:%(lineno)d %(message)s' \
--strict \
--verbose \
--verbose \
--color=yes \
--cov={toxinidir}/telnetlib3 \
--cov-config={toxinidir}/.coveragerc \
--cov-report=html \
--durations=1 \
--timeout=15 \
{posargs} telnetlib3/tests
# report coverage to coveralls
[testenv:coveralls]
passenv = COVERALLS_REPO_TOKEN
deps = coveralls
commands = coveralls --verbose --rcfile={toxinidir}/.coveragerc
[testenv:sa]
# perform static analysis and style enforcement
# Disabled: needs to be brought up-to-date
basepython = python3.11
deps = -rrequirements-tests.txt
-rrequirements-analysis.txt
commands = python -m compileall -fq {toxinidir}/telnetlib3
{envbindir}/rst-lint README.rst
{envbindir}/doc8 --ignore-path docs/_build --ignore D000 docs
{envbindir}/black
[testenv:docs]
# build html documentation
whitelist_externals = echo
# readthedocs.org uses python3.8 still :(
basepython = python3.8
deps = -rrequirements-docs.txt
commands = {envbindir}/sphinx-build -E -v -n \
-d {toxinidir}/docs/_build/doctrees \
{posargs:-b html} docs \
{toxinidir}/docs/_build/html
[pytest]
looponfailroots = telnetlib3
norecursedirs = .git .tox
asyncio_mode = auto
log_level = debug
log_format = %(levelname)8s %(filename)s:%(lineno)s %(message)s
# set this to display all log output, even when tests succeed
#log_cli = 1