-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtox.ini
56 lines (48 loc) · 1.36 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
[tox]
envlist =
py{312,311,310,39}
docs
style
skip_missing_interpreters = true
[testenv]
deps =
pytest == 7.2.0
pytest-mock == 3.10.0
pytest-cov == 4.0.0
pandas >= 1.1.3
pexpect == 4.8.0
setuptools >= 66.0.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
# --ignore=tests/integration: exclude integration tests
pytest --cov=code42cli --cov-report xml -v -rsxX -l --tb=short --strict --ignore=tests/integration
[testenv:docs]
deps =
sphinx == 8.1.3
myst-parser == 4.0.0
sphinx_rtd_theme == 3.0.2
sphinx-click
whitelist_externals = bash
commands =
sphinx-build -W -b html -d "{envtmpdir}/doctrees" docs "{envtmpdir}/html"
bash -c "open {envtmpdir}/html/index.html || true"
[testenv:style]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:nightly]
deps =
pytest == 7.2.0
pytest-mock == 3.10.0
pytest-cov == 4.0.0
git+https://github.com/code42/py42.git@main#egg=py42
[testenv:integration]
commands =
pytest -v -rsxX -l --tb=short --strict -m integration
[pytest]
markers =
integration: mark test as a integration test.