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
220
321[tox]
422envlist = py36, py37, py38, pypy3, py39-dev, mypy, build
5- skip_missing_interpreters = true
23+ skip_missing_interpreters = True
624requires = pip>=20.2.1
7- isolated_build = true
25+ isolated_build = True
826
927[envlists]
1028test = py36, py37, py38, pypy3, py39-dev
1129qa = mypy, lint
12-
1330cov = py36, coverage
1431
15-
1632[travis]
1733python =
1834 3.6: py36, build, mypy
@@ -21,7 +37,6 @@ python =
2137 pypy3: pypy3, build
2238 3.9-dev: py39-dev, build
2339
24-
2540[gh-actions]
2641python =
2742 3.6: py36, build
@@ -30,40 +45,28 @@ python =
3045 pypy3: pypy3, build
3146 3.9-dev: py39-dev, build
3247
33-
3448[testenv]
3549setenv =
3650 PYTHONDEVMODE = 1
37- PIP_USE_FEATURE =2020-resolver
38- PYTEST_ADDOPTS = --color yes
51+ PIP_USE_FEATURE = 2020-resolver
3952deps = -r{toxinidir}/tests/requirements.txt
40-
4153extras = all
4254commands =
4355 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}
4657
4758[testenv:docs]
4859setenv = SHOW_TODOS = 1
4960basepython = python3.8
5061changedir = {toxinidir}/doc-source
51-
5262extras = all
5363deps =
5464 -r{toxinidir}/requirements.txt
5565 -r{toxinidir}/doc-source/requirements.txt
5666commands = sphinx-build -M html . ./build {posargs}
5767
58-
59- [testenv:bumpversion]
60- skip_install = true
61- deps = bump2version
62- commands = bumpversion --verbose {posargs}
63-
64-
6568[testenv:build]
66- skip_install = true
69+ skip_install = True
6770changedir = {toxinidir}
6871deps =
6972 twine
@@ -74,14 +77,12 @@ commands =
7477 twine check dist/*
7578 check-wheel-contents dist/
7679
77-
7880[testenv:lint]
7981basepython = python3.6
8082changedir = {toxinidir}
81- ignore_errors = true
82- skip_install = true
83+ ignore_errors = True
84+ skip_install = True
8385deps =
84- autopep8 >=1.5.2
8586 flake8 >=3.8.2
8687 flake8-2020 >= 1.6.0
8788 flake8_strftime
@@ -96,62 +97,38 @@ deps =
9697 git+https://github.com/domdfcoding/flake8-quotes.git
9798commands = flake8 domdf_python_tools tests
9899
99-
100100[testenv:yapf]
101101basepython = python3.7
102102changedir = {toxinidir}
103- skip_install = true
104- ignore_errors = true
103+ skip_install = True
104+ ignore_errors = True
105105deps = yapf
106106commands = yapf -i --recursive domdf_python_tools tests --exclude " *.pyi"
107107
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-
119108[testenv:mypy]
120109basepython = python3.6
121110extras = all
122- ignore_errors = true
111+ ignore_errors = True
123112changedir = {toxinidir}
124113deps =
125- mypy ==0.782
126- lxml
127- -r{toxinidir}/tests/requirements.txt
114+ mypy ==0.782
115+ lxml
116+ -r{toxinidir}/tests/requirements.txt
128117commands = mypy domdf_python_tools tests {posargs}
129118
130-
131-
132119[testenv:pyup]
133120basepython = 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
144121skip_install = True
145- ignore_errors = true
146- whitelist_externals = tox
122+ ignore_errors = True
147123changedir = {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
150127
151128[testenv:coverage]
152129basepython = python3.6
153130skip_install = True
154- ignore_errors = true
131+ ignore_errors = True
155132whitelist_externals = /bin/bash
156133changedir = {toxinidir}
157134deps =
@@ -162,7 +139,6 @@ commands =
162139 coverage html
163140 /bin/bash -c " DISPLAY=:0 firefox 'htmlcov/index.html'"
164141
165-
166142[flake8]
167143max-line-length = 120
168144select = 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 =
204180 rst:directive:option
205181 rst:role
206182 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
209184pytest-parametrize-names-type = csv
210185inline-quotes = "
211186multiline-quotes = " " "
212187docstring-quotes = " " "
213188
214-
215-
216189[coverage:run]
217- plugins =
218- coverage_pyver_pragma
219-
190+ plugins = coverage_pyver_pragma
220191
221192[coverage:report]
222193exclude_lines =
@@ -233,3 +204,25 @@ exclude_lines =
233204ignore = W002
234205toplevel = domdf_python_tools
235206package = 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