From 09e3b445e3c21539a0adf58af1bea7f8a591c7ab Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Wed, 17 Jan 2024 16:36:16 +0100 Subject: [PATCH 1/2] Update subprocess.py --- coverage_comment/subprocess.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coverage_comment/subprocess.py b/coverage_comment/subprocess.py index d23e515e..1de9c515 100644 --- a/coverage_comment/subprocess.py +++ b/coverage_comment/subprocess.py @@ -23,6 +23,8 @@ def run(*args, path: pathlib.Path, **kwargs) -> str: args, cwd=path, text=True, + # Only relates to DecodeErrors while decoding the output + errors='replace', check=True, capture_output=True, **kwargs, From 661a924d873081be0dead7e2adaaedb6c7874a8d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 15:36:54 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- coverage_comment/subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverage_comment/subprocess.py b/coverage_comment/subprocess.py index 1de9c515..089379f6 100644 --- a/coverage_comment/subprocess.py +++ b/coverage_comment/subprocess.py @@ -24,7 +24,7 @@ def run(*args, path: pathlib.Path, **kwargs) -> str: cwd=path, text=True, # Only relates to DecodeErrors while decoding the output - errors='replace', + errors="replace", check=True, capture_output=True, **kwargs,