diff options
| author | Dennis Fink | 2020-09-25 21:23:58 +0200 |
|---|---|---|
| committer | Dennis Fink | 2020-09-25 21:23:58 +0200 |
| commit | c6ea4f1780d3366cbece5e8267d4fd96dc240e5a (patch) | |
| tree | b3d809c148873b662ad09243060179b2194efbf5 | |
| parent | 1ac22bf82d12fad9b3019d96d27fd3d2b3455289 (diff) | |
| download | patternutils-c6ea4f1780d3366cbece5e8267d4fd96dc240e5a.tar.gz patternutils-c6ea4f1780d3366cbece5e8267d4fd96dc240e5a.zip | |
Black autoformat
| -rw-r--r-- | patternutils/commands/targs.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/patternutils/commands/targs.py b/patternutils/commands/targs.py index a3b3a02..79d906d 100644 --- a/patternutils/commands/targs.py +++ b/patternutils/commands/targs.py @@ -11,7 +11,11 @@ import click from .. import config, template, utils -def run_command(data: Dict[str, str], run: Callable[..., None], shell: bool,) -> None: +def run_command( + data: Dict[str, str], + run: Callable[..., None], + shell: bool, +) -> None: if not shell: prepared_command = shlex.split(c) # type: Union[str, List[str]] else: @@ -103,10 +107,15 @@ def targs( stdout = subprocess.DEVNULL if redirect_stdout else None stderr = subprocess.DEVNULL if redirect_stderr else None patched_subprocess = functools.partial( - subprocess.run, shell=shell, stdout=stdout, stderr=stderr, + subprocess.run, + shell=shell, + stdout=stdout, + stderr=stderr, ) patched_run_command = functools.partial( - run_command, render=render, run=patched_subprocess, shell=shell, + run_command, + run=patched_subprocess, + shell=shell, ) if max_procs == 1: for r in data: |
