Skip to content

Commit e7855ea

Browse files
committed
Updated files with 'repo_helper'.
1 parent 135a6cf commit e7855ea

File tree

3 files changed

+60
-60
lines changed

3 files changed

+60
-60
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"

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
coverage>=5.1
2-
coverage_pyver_pragma>=0.0.2
2+
coverage_pyver_pragma>=0.0.5
33
pytest>=6.0.0
44
pytest-cov>=2.8.1
55
pytest-randomly>=3.3.1

tox.ini

Lines changed: 58 additions & 55 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=flake8_sphinx_links -r aR tests/ {posargs}
34+
python --version
35+
python -m pytest --cov=flake8_sphinx_links -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 flake8_sphinx_links 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 flake8_sphinx_links tests
118115

@@ -143,50 +140,56 @@ ignore_errors = true
143140
whitelist_externals = /bin/bash
144141
changedir = {toxinidir}
145142
deps =
146-
coverage
147-
coverage_pyver_pragma
143+
coverage
144+
coverage_pyver_pragma
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 = """
177174
docstring-quotes = """
178175
179176
180-
[mypy]
181-
python_version = 3.6
182-
ignore_missing_imports = True
183-
namespace_packages = True
184-
185177
186178
[coverage:run]
187179
plugins =
188-
coverage_pyver_pragma
189-
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__.:
190193
191194
[check-wheel-contents]
192195
ignore = W002

0 commit comments

Comments
 (0)