introduce flake8-print linter

This commit is contained in:
Willi Ballenthin
2023-07-09 22:44:47 +02:00
parent 106b12e2a4
commit 4a49543d12
13 changed files with 19 additions and 185 deletions

View File

@@ -8,11 +8,14 @@
import os
import sys
import logging
import textwrap
import subprocess
import pytest
logger = logging.getLogger(__name__)
CD = os.path.dirname(__file__)
@@ -63,7 +66,7 @@ def test_bulk_process(tmpdir):
def run_program(script_path, args):
args = [sys.executable] + [script_path] + args
print(f"running: '{args}'")
logger.debug("running: %r", args)
return subprocess.run(args, stdout=subprocess.PIPE)