aboutsummaryrefslogtreecommitdiffstats
path: root/checks.py
diff options
context:
space:
mode:
Diffstat (limited to 'checks.py')
-rw-r--r--checks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/checks.py b/checks.py
index 70bdcd2..6f508eb 100644
--- a/checks.py
+++ b/checks.py
@@ -167,7 +167,9 @@ def check_non_testable_requirements_are_not_mapped():
def check_flake8_passes():
- result = subprocess.run(["flake8", "."], encoding="utf-8", capture_output=True)
+ result = subprocess.run(["flake8", "."], encoding="utf-8",
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE)
msgs = result.stdout.split("\n") if result.returncode != 0 else []
return ["flake8 errors detected:"] + [f" {e}" for e in msgs] if msgs else []