-
-
Notifications
You must be signed in to change notification settings - Fork 192
/
tox.ini
75 lines (68 loc) · 1.78 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
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
[tox]
# We need 4.4.0 for constrain_package_deps.
min_version = 4.4.0
envlist =
format
lint
test
[testenv]
allowlist_externals =
sh
[testenv:format]
description = automatically reformat code
skip_install = true
deps =
pre-commit
commands =
pre-commit run -a pyupgrade
pre-commit run -a isort
pre-commit run -a black
[testenv:lint]
description = run linters that will help improve the code style
skip_install = true
deps =
pre-commit
commands =
pre-commit run -a
[testenv:dependencies]
description = check if the package defines all its dependencies
skip_install = true
deps =
build
z3c.dependencychecker==2.11
commands =
python -m build --sdist --no-isolation
dependencychecker
[testenv:dependencies-graph]
description = generate a graph out of the package's dependencies
deps =
pipdeptree==2.5.1
graphviz # optional dependency of pipdeptree
commands =
sh -c 'pipdeptree --exclude setuptools,wheel,pipdeptree,zope.interface,zope.component --graph-output svg > dependencies.svg'
[testenv:test]
use_develop = true
constrain_package_deps = true
set_env = ROBOT_BROWSER=headlesschrome
deps =
zope.testrunner
-c https://dist.plone.org/release/6.0-dev/constraints.txt
commands =
zope-testrunner --all --test-path={toxinidir} -s Products.CMFPlone {posargs}
extras =
test
[testenv:coverage]
use_develop = true
constrain_package_deps = true
set_env = ROBOT_BROWSER=headlesschrome
deps =
coverage
zope.testrunner
-c https://dist.plone.org/release/6.0-dev/constraints.txt
commands =
coverage run {envbindir}/zope-testrunner --quiet --all --test-path={toxinidir} -s Products.CMFPlone {posargs}
coverage report -m --format markdown
extras =
test