-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
55 lines (49 loc) · 1.21 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
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
[tox]
envlist =
format
lint
[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
pre-commit run -a zpretty
[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
deps =
z3c.dependencychecker==2.10
commands =
dependencychecker
[testenv:dependencies-graph]
description = generate a graph with the distribution dependencies
deps =
pipdeptree==2.3.3
graphviz # optional dependency of pipdeptree
commands =
sh -c 'pipdeptree --exclude setuptools,pipdeptree,wheel --graph-output svg > dependencies.svg'
[testenv:test]
description = run the tests of the distribution
deps =
Products.CMFPlacefulWorkflow[test]
pytest
gocept.pytestlayer
-c https://dist.plone.org/release/6.0-dev/constraints.txt
commands =
pip install -e .[test]
pytest