Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 8, 2024
1 parent d7b27b9 commit 45103f1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pytest_flake8.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,14 @@ def setup(self):
pytest.skip("file(s) previously passed FLAKE8 checks")

def runtest(self):
with BytesIO() as bo, TextIOWrapper(
bo, encoding='utf-8'
) as to, BytesIO() as be, TextIOWrapper(
be, encoding='utf-8'
) as te, redirect_stdout(to), redirect_stderr(te):
with (
BytesIO() as bo,
TextIOWrapper(bo, encoding='utf-8') as to,
BytesIO() as be,
TextIOWrapper(be, encoding='utf-8') as te,
redirect_stdout(to),
redirect_stderr(te),
):
found_errors = check_file(
self.fspath,
self.flake8ignore,
Expand Down

0 comments on commit 45103f1

Please sign in to comment.