forked from plone/plone.app.contentlisting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
53 lines (48 loc) · 1.25 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
# 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
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 and generate a graph out of them
deps =
z3c.dependencychecker==2.11
pipdeptree==2.5.1
graphviz # optional dependency of pipdeptree
commands =
dependencychecker
sh -c 'pipdeptree --exclude setuptools,wheel,pipdeptree,z3c.dependencychecker,zope.interface,zope.component --graph-output svg > dependencies.svg'
[testenv:test]
usedevelop = true
constrain_package_deps = true
deps =
zope.testrunner
-c https://dist.plone.org/release/6.0-dev/constraints.txt
commands =
zope-testrunner --test-path={toxinidir} -s plone.app.contentlisting
extras =
test