Skip to content

Commit 1e25cea

Browse files
committed
Updated configuration files.
1 parent 3001aba commit 1e25cea

File tree

3 files changed

+64
-64
lines changed

3 files changed

+64
-64
lines changed

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[build-system]
2-
requires = [
3-
"setuptools >= 40.6.0",
4-
"wheel >= 0.34.2",
5-
]
2+
requires = ["setuptools>=40.6.0", "wheel>=0.34.2"]
63
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
# coding: utf-8
2-
# This file is managed by 'repo_helper'. Don't edit it directly.
3-
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+
# * metadata
4+
# * options
5+
# * options.packages.find
6+
# * options.entry_points
7+
# * mypy
48
[metadata]
59
name = coverage_pyver_pragma
10+
description = Plugin for Coverage.py to selectively ignore branches depending on the Python version.
611
author = Dominic Davis-Foster
712
author_email = [email protected]
813
license = GNU Lesser General Public License v3 or later (LGPLv3+)
914
keywords =
10-
1115
long_description = file: README.rst
1216
long_description_content_type = text/x-rst
13-
platforms =
14-
Windows
15-
macOS
16-
Linux
17+
platforms = Windows, macOS, Linux
1718
url = https://github.com/domdfcoding/coverage_pyver_pragma
1819
project_urls =
1920
Documentation = https://coverage_pyver_pragma.readthedocs.io
@@ -36,23 +37,18 @@ classifiers =
3637
Topic :: Utilities
3738
Typing :: Typed
3839

39-
40-
4140
[options]
4241
python_requires = >=3.6
4342
zip_safe = False
4443
include_package_data = True
4544
packages = find:
4645

47-
4846
[options.packages.find]
4947
exclude =
5048
tests
5149
tests.*
5250
doc-source
5351

54-
55-
5652
[mypy]
5753
python_version = 3.6
5854
ignore_missing_imports = True

tox.ini

Lines changed: 54 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,30 @@ isolated_build = true
99

1010
[travis]
1111
python =
12-
3.6: py36, build, mypy
13-
3.7: py37, build
14-
3.8: py38, build
15-
3.9-dev: py39-dev, build
16-
pypy3: pypy3, build
12+
3.6: py36, build, mypy
13+
3.7: py37, build
14+
3.8: py38, build
15+
3.9-dev: py39-dev, build
16+
pypy3: pypy3, build
1717

1818

1919
[gh-actions]
2020
python =
21-
3.6: py36, build
22-
3.7: py37, build
23-
3.8: py38, build
24-
3.9-dev: py39-dev, build
25-
pypy3: pypy3, build
21+
3.6: py36, build
22+
3.7: py37, build
23+
3.8: py38, build
24+
3.9-dev: py39-dev, build
25+
pypy3: pypy3, build
2626

2727

2828
[testenv]
2929
setenv =
30-
PYTHONDEVMODE = 1
31-
PIP_USE_FEATURE=2020-resolver
32-
# Install test requirements
30+
PYTHONDEVMODE = 1
31+
PIP_USE_FEATURE=2020-resolver
3332
deps = -r{toxinidir}/tests/requirements.txt
3433
commands =
35-
python --version
36-
; Run tests
37-
python -m pytest --cov=coverage_pyver_pragma -r aR tests/ {posargs}
34+
python --version
35+
python -m pytest --cov=coverage_pyver_pragma -r aR tests/ {posargs}
3836

3937

4038
[testenv:docs]
@@ -62,7 +60,6 @@ deps =
6260
check-wheel-contents
6361
commands =
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}
7370
ignore_errors = true
7471
skip_install = true
7572
deps =
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
8784
commands = flake8 coverage_pyver_pragma tests
8885

8986

@@ -111,8 +108,8 @@ basepython = python3.6
111108
ignore_errors = true
112109
changedir = {toxinidir}
113110
deps =
114-
mypy
115-
-r{toxinidir}/tests/requirements.txt
111+
mypy
112+
-r{toxinidir}/tests/requirements.txt
116113

117114
commands = mypy coverage_pyver_pragma tests
118115

@@ -143,34 +140,34 @@ ignore_errors = true
143140
whitelist_externals = /bin/bash
144141
changedir = {toxinidir}
145142
deps =
146-
coverage
143+
coverage
147144

148145
commands =
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]
155152
max-line-length = 120
156153
select = 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
157154
exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py
158155
rst-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,
168165
rst-directives =
169-
envvar,
170-
exception,
171-
seealso
166+
envvar,
167+
exception,
168+
seealso
172169
per-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
174171
pytest-parametrize-names-type = csv
175172
inline-quotes = "
176173
multiline-quotes = """
@@ -179,6 +176,16 @@ docstring-quotes = """
179176
180177
181178
179+
[coverage:report]
180+
exclude_lines =
181+
raise AssertionError
182+
raise NotImplementedError
183+
if 0:
184+
if False:
185+
if TYPE_CHECKING:
186+
if typing.TYPE_CHECKING:
187+
if __name__ == .__main__.:
188+
182189
[check-wheel-contents]
183190
ignore = W002
184191
toplevel = coverage_pyver_pragma

0 commit comments

Comments
 (0)