@@ -9,32 +9,30 @@ isolated_build = true
9
9
10
10
[travis]
11
11
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
17
17
18
18
19
19
[gh-actions]
20
20
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
26
26
27
27
28
28
[testenv]
29
29
setenv =
30
- PYTHONDEVMODE = 1
31
- PIP_USE_FEATURE =2020-resolver
32
- # Install test requirements
30
+ PYTHONDEVMODE = 1
31
+ PIP_USE_FEATURE =2020-resolver
33
32
deps = -r{toxinidir}/tests/requirements.txt
34
33
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}
38
36
39
37
40
38
[testenv:docs]
62
60
check-wheel-contents
63
61
commands =
64
62
python -m pep517.build --source --binary " {toxinidir}"
65
- ; python setup.py {posargs} sdist bdist_wheel
66
63
twine check dist/*
67
64
check-wheel-contents dist/
68
65
@@ -73,17 +70,17 @@ changedir = {toxinidir}
73
70
ignore_errors = true
74
71
skip_install = true
75
72
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
87
84
commands = flake8 flake8_sphinx_links tests
88
85
89
86
@@ -111,8 +108,8 @@ basepython = python3.6
111
108
ignore_errors = true
112
109
changedir = {toxinidir}
113
110
deps =
114
- mypy
115
- -r{toxinidir}/tests/requirements.txt
111
+ mypy
112
+ -r{toxinidir}/tests/requirements.txt
116
113
117
114
commands = mypy flake8_sphinx_links tests
118
115
@@ -143,50 +140,56 @@ ignore_errors = true
143
140
whitelist_externals = /bin/bash
144
141
changedir = {toxinidir}
145
142
deps =
146
- coverage
147
- coverage_pyver_pragma
143
+ coverage
144
+ coverage_pyver_pragma
148
145
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'"
152
149
153
150
154
151
[flake8]
155
152
max-line-length = 120
156
153
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
157
154
exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py
158
155
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,
168
165
rst-directives =
169
- envvar,
170
- exception,
171
- seealso
166
+ envvar,
167
+ exception,
168
+ seealso
172
169
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
174
171
pytest-parametrize-names-type = csv
175
172
inline-quotes = "
176
173
multiline-quotes = " " "
177
174
docstring-quotes = " " "
178
175
179
176
180
- [mypy]
181
- python_version = 3.6
182
- ignore_missing_imports = True
183
- namespace_packages = True
184
-
185
177
186
178
[coverage:run]
187
179
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__.:
190
193
191
194
[check-wheel-contents]
192
195
ignore = W002
0 commit comments