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 Apr 8, 2024
1 parent b10998f commit f1ab0ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions extension_helpers/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ def run_cmd(cmd, args, path=None, raise_error=True):

if raise_error and return_code != 0:
raise RuntimeError(
"The command `{}` with args {!r} exited with code {}.\n"
"Stdout:\n\n{}\n\nStderr:\n\n{}".format(
cmd, list(args), return_code, streams[0], streams[1]
)
f"The command `{cmd}` with args {list(args)!r} exited with code {return_code}.\n"
f"Stdout:\n\n{streams[0]}\n\nStderr:\n\n{streams[1]}"
)

return streams + (return_code,)
Expand Down
1 change: 1 addition & 0 deletions extension_helpers/tests/py311_backports.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
agrees to be bound by the terms and conditions of this License
Agreement.
"""

import os
from contextlib import AbstractContextManager

Expand Down

0 comments on commit f1ab0ea

Please sign in to comment.