@@ -9,32 +9,30 @@ isolated_build = true
99
1010[travis]
1111python =
12- 3.6: py36, build, mypy
13- 3.7: py37, build
14- 3.8: py38, build
15- pypy3: pypy3, build
16- 3.9-dev: py39-dev, build
12+ 3.6: py36, build, mypy
13+ 3.7: py37, build
14+ 3.8: py38, build
15+ pypy3: pypy3, build
16+ 3.9-dev: py39-dev, build
1717
1818
1919[gh-actions]
2020python =
21- 3.6: py36, build
22- 3.7: py37, build
23- 3.8: py38, build
24- pypy3: pypy3, build
25- 3.9-dev: py39-dev, build
21+ 3.6: py36, build
22+ 3.7: py37, build
23+ 3.8: py38, build
24+ pypy3: pypy3, build
25+ 3.9-dev: py39-dev, build
2626
2727
2828[testenv]
2929setenv =
30- PYTHONDEVMODE = 1
31- PIP_USE_FEATURE =2020-resolver
32- # Install test requirements
30+ PYTHONDEVMODE = 1
31+ PIP_USE_FEATURE =2020-resolver
3332deps = -r{toxinidir}/tests/requirements.txt
3433commands =
35- python --version
36- ; Run tests
37- python -m pytest --cov =domdf_python_tools -r aR tests/ {posargs}
34+ python --version
35+ python -m pytest --cov =domdf_python_tools -r aR tests/ {posargs}
3836
3937
4038[testenv:docs]
6260 check-wheel-contents
6361commands =
6462 python -m pep517.build --source --binary " {toxinidir}"
65- ; python setup.py {posargs} sdist bdist_wheel
6663 twine check dist/*
6764 check-wheel-contents dist/
6865
@@ -73,17 +70,17 @@ changedir = {toxinidir}
7370ignore_errors = true
7471skip_install = true
7572deps =
76- autopep8 >=1.5.2
77- flake8 >=3.8.2
78- flake8-2020 >= 1.6.0
79- flake8_strftime
80- flake8-pytest-style
81- flake8-docstrings
82- flake8-typing-imports
83- git+https://github.com/domdfcoding/flake8-rst-docstrings.git
84- flake8-builtins
85- pygments
86- git+https://github.com/domdfcoding/flake8-quotes.git
73+ autopep8 >=1.5.2
74+ flake8 >=3.8.2
75+ flake8-2020 >= 1.6.0
76+ flake8_strftime
77+ flake8-pytest-style
78+ flake8-docstrings
79+ flake8-typing-imports
80+ git+https://github.com/domdfcoding/flake8-rst-docstrings.git
81+ flake8-builtins
82+ pygments
83+ git+https://github.com/domdfcoding/flake8-quotes.git
8784commands = flake8 domdf_python_tools tests
8885
8986
@@ -111,8 +108,8 @@ basepython = python3.6
111108ignore_errors = true
112109changedir = {toxinidir}
113110deps =
114- mypy
115- -r{toxinidir}/tests/requirements.txt
111+ mypy
112+ -r{toxinidir}/tests/requirements.txt
116113
117114commands = mypy domdf_python_tools tests
118115
@@ -143,34 +140,34 @@ ignore_errors = true
143140whitelist_externals = /bin/bash
144141changedir = {toxinidir}
145142deps =
146- coverage
147- coverage_pyver_pragma
143+ coverage
144+ coverage_pyver_pragma
148145commands =
149- /bin/bash -c " rm -rf htmlcov"
150- coverage html
151- /bin/bash -c " DISPLAY=:0 firefox 'htmlcov/index.html'"
146+ /bin/bash -c " rm -rf htmlcov"
147+ coverage html
148+ /bin/bash -c " DISPLAY=:0 firefox 'htmlcov/index.html'"
152149
153150
154151[flake8]
155152max-line-length = 120
156153select = E301 E303 E304 E305 E306 E502 W291 W293 W391 E226 E225 E241 E231 W292 E265 E101 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 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
157154exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py
158155rst-roles =
159- class,
160- func,
161- mod,
162- py:obj,
163- py:class,
164- ref,
165- meth,
166- exc,
167- attr,
156+ class,
157+ func,
158+ mod,
159+ py:obj,
160+ py:class,
161+ ref,
162+ meth,
163+ exc,
164+ attr,
168165rst-directives =
169- envvar,
170- exception,
171- seealso
166+ envvar,
167+ exception,
168+ seealso
172169per-file-ignores =
173- 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
170+ 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
174171pytest-parametrize-names-type = csv
175172inline-quotes = "
176173multiline-quotes = " " "
@@ -180,8 +177,19 @@ docstring-quotes = """
180177
181178[coverage:run]
182179plugins =
183- coverage_pyver_pragma
184-
180+ coverage_pyver_pragma
181+
182+
183+ [coverage:report]
184+ exclude_lines =
185+ (pragma|PRAGMA)[:\s]?\s*(no|NO)\s*(cover|COVER)
186+ raise AssertionError
187+ raise NotImplementedError
188+ if 0:
189+ if False:
190+ if TYPE_CHECKING:
191+ if typing.TYPE_CHECKING:
192+ if __name__ == .__main__.:
185193
186194[check-wheel-contents]
187195ignore = W002
0 commit comments