forked from benji-york/manuel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
132 lines (106 loc) · 2.08 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[tox]
skip_missing_interpreters = True
envlist =
py27,py36,py37,py38,py39,py310,pypy,pypy3,
coverage,
black-enforce,
black-check,
isort-apply,
isort,
docs,
# lint,
[gh-actions]
python =
2.7: py27
3.7: py37
3.8: py38
3.9: py39
[testenv]
deps =
coverage
zope.testing
commands =
coverage run setup.py test -q
setenv =
COVERAGE_FILE=.coverage.{envname}
[testenv:coverage]
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands =
coverage erase
coverage combine
coverage report
[testenv:black-check]
basepython = python3.9
skip_install = True
deps =
black
commands =
python -VV
black --check --diff -v --skip-string-normalization src setup.py
[testenv:black-enforce]
basepython = python3.9
skip_install = True
deps =
black
commands =
python -VV
black -v --skip-string-normalization src setup.py
[testenv:isort]
basepython = python3.9
skip_install = True
deps =
isort
commands =
python -VV
isort --check-only --diff src setup.py
[testenv:isort-apply]
basepython = python3.9
skip_install = True
deps =
isort
commands =
python -VV
isort src setup.py {posargs}
[testenv:lint]
basepython = python3.9
skip_install = True
deps =
Jinja2<=3.0.3
isort
flake8
# helper to generate HTML reports:
flake8-html
flake8-blind-except
flake8-coding
flake8-commas
flake8-debugger
flake8-deprecated
flake8-docstrings
flake8-isort
flake8-pep3101
flake8-print
flake8-quotes
flake8-string-format
flake8-todo
commands =
python -VV
mkdir -p {toxinidir}/_build/flake8
- flake8 --format=html --htmldir={toxinidir}/_build/flake8 --ignore=C101 src setup.py
flake8 --ignore=C101,P101,D104 src setup.py
whitelist_externals =
mkdir
[testenv:docs]
basepython = python3.9
skip_install = False
usedevelop = True
deps =
-r requirements.txt
docutils
Sphinx
myst-parser
sphinx-book-theme<=0.3.99
commands =
python -VV
{envdir}/bin/sphinx-build -c {toxinidir}/sphinx {toxinidir}/src/manuel {envdir}/docs/