ruff/com812

This commit is contained in:
Marc Beninca 2025-01-31 22:44:26 +01:00
parent 0dd0c5fd8f
commit 3a2d8d9d4f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 6 additions and 3 deletions

View file

@ -61,7 +61,7 @@ def get_path_mount(path: Path) -> Path:
"stat", "stat",
("--format", "%m"), ("--format", "%m"),
str(path), str(path),
) ),
) )

View file

@ -43,7 +43,9 @@ def run(*items: str | tuple[str, ...]) -> subprocess.CompletedProcess:
:rtype: subprocess.CompletedProcess :rtype: subprocess.CompletedProcess
""" """
return subprocess.run( return subprocess.run(
get_tuples_args(*items), capture_output=False, check=True get_tuples_args(*items),
capture_output=False,
check=True,
) )
@ -61,7 +63,8 @@ def run_line(*items: str | tuple[str, ...], charset: str = txt.CHARSET) -> str:
def run_lines( def run_lines(
*items: str | tuple[str, ...], charset: str = txt.CHARSET *items: str | tuple[str, ...],
charset: str = txt.CHARSET,
) -> list[str]: ) -> list[str]:
"""Run and return output lines. """Run and return output lines.