Skip to content

Commit c01e967

Browse files
committed
Updated config files.
1 parent 17131af commit c01e967

File tree

4 files changed

+64
-69
lines changed

4 files changed

+64
-69
lines changed

.isort.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ known_third_party =
2727
pytest_cov
2828
pytest_randomly
2929
pytest_rerunfailures
30+
pytest_timeout
3031
pytz
3132
requests
3233
typing_extensions

__pkginfo__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is managed by 'repo_helper'. Don't edit it directly.
2-
# Copyright (C) 2020 Dominic Davis-Foster <[email protected]>
2+
# Copyright © 2020 Dominic Davis-Foster <[email protected]>
33
#
44
# This file is distributed under the same license terms as the program it came with.
55
# There will probably be a file called LICEN[S/C]E in the same directory as this file.

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ pytest>=6.0.0
66
pytest-cov>=2.8.1
77
pytest-randomly>=3.3.1
88
pytest-rerunfailures>=9.0
9+
pytest-timeout>=1.4.2
910
pytz>=2019.1

tox.ini

Lines changed: 61 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
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]
422
envlist = py36, py37, py38, pypy3, py39-dev, mypy, build
5-
skip_missing_interpreters = true
23+
skip_missing_interpreters = True
624
requires = pip>=20.2.1
7-
isolated_build = true
25+
isolated_build = True
826

927
[envlists]
1028
test = py36, py37, py38, pypy3, py39-dev
1129
qa = mypy, lint
12-
1330
cov = py36, coverage
1431

15-
1632
[travis]
1733
python =
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]
2641
python =
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]
3549
setenv =
3650
PYTHONDEVMODE = 1
37-
PIP_USE_FEATURE=2020-resolver
38-
PYTEST_ADDOPTS = --color yes
51+
PIP_USE_FEATURE = 2020-resolver
3952
deps = -r{toxinidir}/tests/requirements.txt
40-
4153
extras = all
4254
commands =
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]
4859
setenv = SHOW_TODOS = 1
4960
basepython = python3.8
5061
changedir = {toxinidir}/doc-source
51-
5262
extras = all
5363
deps =
5464
-r{toxinidir}/requirements.txt
5565
-r{toxinidir}/doc-source/requirements.txt
5666
commands = 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
6770
changedir = {toxinidir}
6871
deps =
6972
twine
@@ -74,14 +77,12 @@ commands =
7477
twine check dist/*
7578
check-wheel-contents dist/
7679

77-
7880
[testenv:lint]
7981
basepython = python3.6
8082
changedir = {toxinidir}
81-
ignore_errors = true
82-
skip_install = true
83+
ignore_errors = True
84+
skip_install = True
8385
deps =
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
9798
commands = flake8 domdf_python_tools tests
9899

99-
100100
[testenv:yapf]
101101
basepython = python3.7
102102
changedir = {toxinidir}
103-
skip_install = true
104-
ignore_errors = true
103+
skip_install = True
104+
ignore_errors = True
105105
deps = yapf
106106
commands = 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]
120109
basepython = python3.6
121110
extras = all
122-
ignore_errors = true
111+
ignore_errors = True
123112
changedir = {toxinidir}
124113
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
128117
commands = mypy domdf_python_tools tests {posargs}
129118

130-
131-
132119
[testenv:pyup]
133120
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
144121
skip_install = True
145-
ignore_errors = true
146-
whitelist_externals = tox
122+
ignore_errors = True
147123
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
150127

151128
[testenv:coverage]
152129
basepython = python3.6
153130
skip_install = True
154-
ignore_errors = true
131+
ignore_errors = True
155132
whitelist_externals = /bin/bash
156133
changedir = {toxinidir}
157134
deps =
@@ -162,7 +139,6 @@ commands =
162139
coverage html
163140
/bin/bash -c "DISPLAY=:0 firefox 'htmlcov/index.html'"
164141

165-
166142
[flake8]
167143
max-line-length = 120
168144
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 =
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
209184
pytest-parametrize-names-type = csv
210185
inline-quotes = "
211186
multiline-quotes = """
212187
docstring-quotes = """
213188
214-
215-
216189
[coverage:run]
217-
plugins =
218-
coverage_pyver_pragma
219-
190+
plugins = coverage_pyver_pragma
220191
221192
[coverage:report]
222193
exclude_lines =
@@ -233,3 +204,25 @@ exclude_lines =
233204
ignore = W002
234205
toplevel = domdf_python_tools
235206
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

Comments
 (0)