forked from code42/py42
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
33 lines (28 loc) · 783 Bytes
/
Copy pathtox.ini
File metadata and controls
33 lines (28 loc) · 783 Bytes
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
[tox]
envlist =
py{38,37,36,35,27}
docs
style
skip_missing_interpreters = true
[testenv]
deps =
pytest == 4.6.11
pytest-mock == 2.0.0
pytest-cov == 2.10.0
commands =
# -v: verbose
# -rsxX: show extra test summary info for (s)skipped, (x)failed, (X)passed
# -l: show locals in tracebacks
# --tb=short: short traceback print mode
# --strict: marks not registered in configuration file raise errors
pytest --cov=py42 --cov-report xml -v -rsxX -l --tb=short --strict
[testenv:docs]
deps =
sphinx
recommonmark
sphinx_rtd_theme
commands = sphinx-build -W -b html -d {envtmpdir}/doctress docs {envtmpdir}/html
[testenv:style]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure