Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 15, 2024
1 parent f05bab4 commit 8d8dbc0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ansible_navigator/command_runner/command_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def run_command(command: Command) -> None:
capture_output=True,
check=True,
text=True,
shell=True, # noqa:S602
shell=True,
)
command.return_code = proc_out.returncode
command.stdout = proc_out.stdout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def lintables(
try:
subprocess.run(
"ansible-lint --version", # noqa:S607
shell=True, # noqa:S602
shell=True,
check=True,
)
except subprocess.CalledProcessError:
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_navigator/data/catalog_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def run_command(cmd: list[str]) -> dict[str, str]:
capture_output=True,
check=True,
text=True,
shell=True, # noqa:S602
shell=True,
)
except subprocess.CalledProcessError as exc:
return {"error": str(exc)}
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_navigator/data/image_introspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run_command(command: Command) -> None:
capture_output=True,
check=True,
text=True,
shell=True, # noqa:S602
shell=True,
)
command.stdout = proc_out.stdout
except subprocess.CalledProcessError as exc:
Expand Down
4 changes: 2 additions & 2 deletions src/ansible_navigator/image_manager/puller.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _check_for_image(self) -> None:
cmd_parts = [self._container_engine, "image", "inspect", self._image]
self._log_message(level=logging.DEBUG, message=f"Command: {shlex_join(cmd_parts)}")
subprocess.run(
cmd_parts, # noqa:S603
cmd_parts,
check=True,
capture_output=True,
)
Expand Down Expand Up @@ -219,7 +219,7 @@ def pull_stdout(self) -> None:
cmd_to_run,
check=True,
stderr=stderr_pipe,
shell=True, # noqa:S602
shell=True,
env=os.environ,
)
self._log_message(level=logging.INFO, message="Execution environment updated")
Expand Down

0 comments on commit 8d8dbc0

Please sign in to comment.