1
- # This file is managed by 'repo_helper'. Don't edit it directly.
1
+ # This file is managed by 'repo_helper'.
2
+ # You may add new sections, but any changes made to the following sections will be lost:
3
+ # * tox
4
+ # * envlists
5
+ # * travis
6
+ # * gh-actions
7
+ # * testenv
8
+ # * testenv:docs
9
+ # * testenv:build
10
+ # * testenv:lint
11
+ # * testenv:yapf
12
+ # * testenv:mypy
13
+ # * testenv:pyup
14
+ # * testenv:coverage
15
+ # * flake8
16
+ # * coverage:run
17
+ # * coverage:report
18
+ # * check-wheel-contents
19
+ # * pytest
2
20
3
21
[tox]
4
22
envlist = py36, py37, py38, pypy3, py39-dev, mypy, build
5
- skip_missing_interpreters = true
23
+ skip_missing_interpreters = True
6
24
requires = pip>=20.2.1
7
- isolated_build = true
25
+ isolated_build = True
8
26
9
27
[envlists]
10
28
test = py36, py37, py38, pypy3, py39-dev
11
29
qa = mypy, lint
12
-
13
30
cov = py36, coverage
14
31
15
-
16
32
[travis]
17
33
python =
18
34
3.6: py36, build, mypy
@@ -21,7 +37,6 @@ python =
21
37
pypy3: pypy3, build
22
38
3.9-dev: py39-dev, build
23
39
24
-
25
40
[gh-actions]
26
41
python =
27
42
3.6: py36, build
@@ -30,40 +45,28 @@ python =
30
45
pypy3: pypy3, build
31
46
3.9-dev: py39-dev, build
32
47
33
-
34
48
[testenv]
35
49
setenv =
36
50
PYTHONDEVMODE = 1
37
- PIP_USE_FEATURE =2020-resolver
38
- PYTEST_ADDOPTS = --color yes
51
+ PIP_USE_FEATURE = 2020-resolver
39
52
deps = -r{toxinidir}/tests/requirements.txt
40
-
41
53
extras = all
42
54
commands =
43
55
python --version
44
- python -m pytest --cov =domdf_python_tools -r aR tests/ --durations 25 {posargs}
45
-
56
+ python -m pytest --cov =domdf_python_tools -r aR tests/ {posargs}
46
57
47
58
[testenv:docs]
48
59
setenv = SHOW_TODOS = 1
49
60
basepython = python3.8
50
61
changedir = {toxinidir}/doc-source
51
-
52
62
extras = all
53
63
deps =
54
64
-r{toxinidir}/requirements.txt
55
65
-r{toxinidir}/doc-source/requirements.txt
56
66
commands = sphinx-build -M html . ./build {posargs}
57
67
58
-
59
- [testenv:bumpversion]
60
- skip_install = true
61
- deps = bump2version
62
- commands = bumpversion --verbose {posargs}
63
-
64
-
65
68
[testenv:build]
66
- skip_install = true
69
+ skip_install = True
67
70
changedir = {toxinidir}
68
71
deps =
69
72
twine
@@ -74,14 +77,12 @@ commands =
74
77
twine check dist/*
75
78
check-wheel-contents dist/
76
79
77
-
78
80
[testenv:lint]
79
81
basepython = python3.6
80
82
changedir = {toxinidir}
81
- ignore_errors = true
82
- skip_install = true
83
+ ignore_errors = True
84
+ skip_install = True
83
85
deps =
84
- autopep8 >=1.5.2
85
86
flake8 >=3.8.2
86
87
flake8-2020 >= 1.6.0
87
88
flake8_strftime
@@ -96,62 +97,38 @@ deps =
96
97
git+https://github.com/domdfcoding/flake8-quotes.git
97
98
commands = flake8 domdf_python_tools tests
98
99
99
-
100
100
[testenv:yapf]
101
101
basepython = python3.7
102
102
changedir = {toxinidir}
103
- skip_install = true
104
- ignore_errors = true
103
+ skip_install = True
104
+ ignore_errors = True
105
105
deps = yapf
106
106
commands = yapf -i --recursive domdf_python_tools tests --exclude " *.pyi"
107
107
108
-
109
- [testenv:isort]
110
- basepython = python3.6
111
- skip_install = true
112
- ignore_errors = true
113
- changedir = {toxinidir}
114
- deps = isort >=5.1.4
115
- commands = isort domdf_python_tools tests
116
-
117
-
118
-
119
108
[testenv:mypy]
120
109
basepython = python3.6
121
110
extras = all
122
- ignore_errors = true
111
+ ignore_errors = True
123
112
changedir = {toxinidir}
124
113
deps =
125
- mypy ==0.782
126
- lxml
127
- -r{toxinidir}/tests/requirements.txt
114
+ mypy ==0.782
115
+ lxml
116
+ -r{toxinidir}/tests/requirements.txt
128
117
commands = mypy domdf_python_tools tests {posargs}
129
118
130
-
131
-
132
119
[testenv:pyup]
133
120
basepython = python3.6
134
- skip_install = true
135
- extras = all
136
- ignore_errors = true
137
- changedir ={toxinidir}
138
- deps = pyupgrade-directories
139
- commands = pyup_dirs domdf_python_tools tests --py36-plus --recursive
140
-
141
-
142
- [testenv:qa]
143
- basepython = python3.6
144
121
skip_install = True
145
- ignore_errors = true
146
- whitelist_externals = tox
122
+ ignore_errors = True
147
123
changedir = {toxinidir}
148
- commands = tox -e pyup,isort,yapf,mypy,lint {posargs}
149
-
124
+ deps = pyupgrade-directories
125
+ extras = all
126
+ commands = pyup_dirs domdf_python_tools tests --py36-plus --recursive
150
127
151
128
[testenv:coverage]
152
129
basepython = python3.6
153
130
skip_install = True
154
- ignore_errors = true
131
+ ignore_errors = True
155
132
whitelist_externals = /bin/bash
156
133
changedir = {toxinidir}
157
134
deps =
@@ -162,7 +139,6 @@ commands =
162
139
coverage html
163
140
/bin/bash -c " DISPLAY=:0 firefox 'htmlcov/index.html'"
164
141
165
-
166
142
[flake8]
167
143
max-line-length = 120
168
144
select = E301 E303 E304 E305 E306 E502 W291 W293 W391 E226 E225 E241 E231 W292 E265 E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E227 E228 E242 E251 E261 E262 E271 E272 E402 E703 E711 E712 E713 E714 E721 W504 E302 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT004 PT005 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q000 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
@@ -204,19 +180,14 @@ rst-directives =
204
180
rst:directive:option
205
181
rst:role
206
182
pre-commit-shield
207
- per-file-ignores =
208
- tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
183
+ per-file-ignores = tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
209
184
pytest-parametrize-names-type = csv
210
185
inline-quotes = "
211
186
multiline-quotes = " " "
212
187
docstring-quotes = " " "
213
188
214
-
215
-
216
189
[coverage:run]
217
- plugins =
218
- coverage_pyver_pragma
219
-
190
+ plugins = coverage_pyver_pragma
220
191
221
192
[coverage:report]
222
193
exclude_lines =
@@ -233,3 +204,25 @@ exclude_lines =
233
204
ignore = W002
234
205
toplevel = domdf_python_tools
235
206
package = domdf_python_tools
207
+
208
+ [pytest]
209
+ addopts = --color yes --durations 25
210
+ timeout = 300
211
+
212
+ [testenv:isort]
213
+ basepython = python3.6
214
+ skip_install = true
215
+ ignore_errors = true
216
+ changedir = {toxinidir}
217
+ deps = isort >=5.1.4
218
+ commands = isort domdf_python_tools tests
219
+
220
+
221
+
222
+ [testenv:qa]
223
+ basepython = python3.6
224
+ skip_install = True
225
+ ignore_errors = true
226
+ whitelist_externals = tox
227
+ changedir = {toxinidir}
228
+ commands = tox -e pyup,isort,yapf,mypy,lint {posargs}
0 commit comments