-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
78 lines (71 loc) · 1.72 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
76
77
78
[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
pytest-cov
coverage
commands =
pytest --basetemp="{envtmpdir}" {posargs:--color=yes --cov=dissect --cov-report=term-missing -v tests}
coverage report
coverage xml
[testenv:build]
package = skip
deps =
build
commands =
pyproject-build
[testenv:fix]
package = skip
deps =
black==23.1.0
isort==5.11.4
commands =
black dissect tests
isort dissect tests
[testenv:lint]
package = skip
deps =
black==23.1.0
flake8
flake8-black
flake8-isort
isort==5.11.4
vermin
commands =
flake8 dissect tests
vermin -t=3.9- --no-tips --lint dissect tests
[flake8]
max-line-length = 120
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,
statistics = True
[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