ruff/com812
This commit is contained in:
parent
0dd0c5fd8f
commit
3a2d8d9d4f
2 changed files with 6 additions and 3 deletions
|
@ -61,7 +61,7 @@ def get_path_mount(path: Path) -> Path:
|
||||||
"stat",
|
"stat",
|
||||||
("--format", "%m"),
|
("--format", "%m"),
|
||||||
str(path),
|
str(path),
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue