-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (51 loc) · 1 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
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
# See the inline comments on how to expand/tweak this configuration file
[tox]
# We need 4.4.0 for constrain_package_deps.
min_version = 4.4.0
envlist =
py310
py311
py312
test
mypy
lint
[gh-actions]
python =
3.10: py310, mypy
3.11: py311
3.12: py312, mypy, lint
[testenv]
use_develop = true
skip_install = false
constrain_package_deps = true
commands =
pytest {posargs}
extras =
test
[testenv:format]
description = automatically reformats 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:mypy]
description = run type chekcer mypy
skip_install = false
deps =
mypy
commands =
mypy --explicit-package-bases .
extras =
typecheck