Repository navigation
Expand file tree
/
Copy pathtox.ini
More file actions
83 lines (75 loc) · 1.58 KB
/
Copy pathtox.ini
File metadata and controls
83 lines (75 loc) · 1.58 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tox]
min_version = 4.4.0
envlist =
test
py314
py313
py312
py311
coverage
format
lint
dependencies
release-check
[testenv:test]
description = run the test suite
extras =
test
commands =
pytest {posargs}
[testenv]
description = run the test suite (generative environments)
extras =
test
commands =
pytest {posargs}
[testenv:coverage]
description = get coverage results
use_develop = true
skip_install = false
deps = coverage
extras =
test
commands =
coverage run --source tests,plone.meta -m pytest {posargs} --disable-warnings {toxinidir}
coverage report -m --format markdown
coverage html
[testenv:format]
description = automatically reformat code
skip_install = true
deps =
prek
commands =
prek run -a pyupgrade
prek run -a isort
prek run -a black
[testenv:lint]
description = run linters that will help improve the code style
skip_install = true
deps =
prek
commands =
prek run -a
[testenv:dependencies]
description = check if the package defines all its dependencies
skip_install = true
deps =
build
z3c.dependencychecker==3.0
commands =
python -m build --sdist
dependencychecker
[testenv:release-check]
description = ensure that the distribution is ready to release
skip_install = true
deps =
twine
build
towncrier
commands =
# fake version to not have to install the package
# we build the change log as news entries might break
# the README that is displayed on PyPI
towncrier build --version=100.0.0 --yes
python -m build --sdist
twine check dist/*