-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
72 lines (63 loc) · 1.15 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
[tox]
envlist =
clean
flake8
isort
docs
py{38,39,310,311,312}-jinja{300,310}
coverage
[flake8]
max-line-length = 100
exclude =
.git
.tox
__pycache__
docs
.eggs
versioneer.py
exhibition/_version.py
max-complexity = 10
[isort]
line_length = 100
from_first = true
use_parentheses = true
skip_glob =
exhibition/_version.py
versioneer.py
[gh-actions]
python =
3.8: clean,py38,coverage
3.9: clean,py39,coverage
3.10: clean,py310,coverage
3.11: clean,py311,coverage
3.12: clean,py312,coverage
[testenv]
deps =
jinja310: jinja2>=3.1,<3.2
jinja300: jinja2>=3.0,<3.1
coverage
commands = coverage run -a --branch -m unittest {posargs}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage]
deps = coverage
skip_install = true
commands =
coverage report
coverage html
coverage xml
[testenv:flake8]
commands = flake8 .
deps = flake8
skip_install = true
[testenv:docs]
allowlist_externals = make
changedir = docs
commands = make html
extras = docs
[testenv:isort]
commands = isort --check-only --diff .
deps = isort
skip_install = true