-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
63 lines (57 loc) · 1.59 KB
/
tox.ini
File metadata and controls
63 lines (57 loc) · 1.59 KB
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
[tox]
envlist = lint, py3, pypy3
# This version of tox will autoprovision itself and the requirements defined in
# requires if they are not available on the host system. This requires the
# locally installed tox to have a minimum version 3.3.0. This means the names
# of the configuration options are still according to the tox 3.x syntax.
minversion = 4.4.3
# This version of virtualenv will install setuptools version 65.5.0 and pip
# 22.3. These versions fully support python projects defined only through a
# pyproject.toml file (PEP-517/PEP-518/PEP-621)
requires = virtualenv>=20.16.6
[testenv]
extras = dev
deps =
pytest-cov
coverage
dependency_groups = test
commands =
pytest --basetemp="{envtmpdir}" {posargs:--color=yes --cov=dissect --cov-report=term-missing -v tests}
coverage report
coverage xml
[testenv:build]
package = skip
dependency_groups = build
commands =
pyproject-build
[testenv:fix]
package = skip
dependency_groups = lint
commands =
ruff check --fix dissect tests
ruff format dissect tests
[testenv:lint]
package = skip
dependency_groups = lint
commands =
ruff check dissect tests
ruff format --check dissect tests
vermin -t=3.10- --no-tips --lint dissect tests
[testenv:docs-build]
allowlist_externals = make
deps =
sphinx
sphinx-autoapi
sphinx_argparse_cli
sphinx-copybutton
sphinx-design
furo
commands =
make -C tests/_docs clean
make -C tests/_docs html
[testenv:docs-linkcheck]
allowlist_externals = make
deps = {[testenv:docs-build]deps}
commands =
make -C tests/_docs clean
make -C tests/_docs linkcheck