Skip to content

Commit

Permalink
Merge pull request #373 from akaihola/linter-log-output
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola authored Aug 28, 2022
2 parents daed1cd + aa290c0 commit 0fd5a79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/darker/linting.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ def _check_linter_output(
:return: The standard output stream of the linter subprocess
"""
cmdline_and_paths = cmdline.split() + [str(root / path) for path in sorted(paths)]
logger.debug("[%s]$ %s", Path.cwd(), " ".join(cmdline_and_paths))
with Popen( # nosec
cmdline.split() + [str(root / path) for path in sorted(paths)],
cmdline_and_paths,
stdout=PIPE,
encoding="utf-8",
) as linter_process:
Expand Down

0 comments on commit 0fd5a79

Please sign in to comment.