Skip to content

Commit 30c87dc

Browse files
committed
Linting.
1 parent c05c2ed commit 30c87dc

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

domdf_python_tools/compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def __exit__(self, *excinfo):
107107
pass
108108

109109
else: # pragma: no cover (<py37)
110+
110111
# stdlib
111112
from contextlib import nullcontext
112113

domdf_python_tools/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,5 @@ def redirect_output(combine: bool = False) -> Iterator[Tuple[StringIO, StringIO]
423423
stdout = StringIO()
424424
stderr = StringIO()
425425

426-
with contextlib.redirect_stdout(stdout):
427-
with contextlib.redirect_stderr(stderr):
428-
yield stdout, stderr
426+
with contextlib.redirect_stdout(stdout), contextlib.redirect_stderr(stderr):
427+
yield stdout, stderr

repo_helper.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,10 @@ tox_unmanaged:
6868
- testenv:lint
6969
- flake8
7070

71-
tox_testenv_extras: all
72-
7371
additional_ignore:
7472
- pathtype_demo.py
7573

74+
tox_testenv_extras: all
7675
min_coverage: 95
77-
7876
mypy_version: "0.800"
7977
docs_fail_on_warning: true

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ deps =
124124
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
125125
git+https://github.com/domdfcoding/flake8-quotes.git
126126
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
127-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
127+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
128128
pygments>=2.7.1
129129
commands = python3 -m flake8_rst_docstrings_sphinx domdf_python_tools tests --allow-toolbox {posargs}
130130

0 commit comments

Comments
 (0)