Skip to content

Commit

Permalink
Apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Dec 20, 2023
1 parent 702927a commit 25321ac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pixee/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ def run_codemodder(
f"Applying {num_codemods} {language} codemods",
total=num_codemods,
)
command = safe_command.run(subprocess.Popen, [codemodder, "--output", codetf.name, path] + common_codemodder_args,
command = safe_command.run(
subprocess.Popen,
[codemodder, "--output", codetf.name, path] + common_codemodder_args,
stderr=subprocess.DEVNULL,
stdout=subprocess.PIPE if not verbose else None,
)
Expand Down Expand Up @@ -427,7 +429,9 @@ def summarize_results(combined_codetf):

@lru_cache()
def list_codemods(codemodder: str):
result = safe_command.run(subprocess.run, [codemodder, "--list"],
result = safe_command.run(
subprocess.run,
[codemodder, "--list"],
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL,
check=True,
Expand Down

0 comments on commit 25321ac

Please sign in to comment.