ruff: apply automatic fixes

This commit is contained in:
Jörg Thalheim
2025-08-20 13:52:45 +02:00
parent 798d445f3e
commit ea2d6aab65
217 changed files with 2283 additions and 1739 deletions

View File

@@ -30,7 +30,7 @@ def nix_flake_show(flake_url: str | Path) -> list[str]:
"--json",
*(["--show-trace"] if log.isEnabledFor(logging.DEBUG) else []),
str(flake_url),
]
],
)
@@ -43,7 +43,7 @@ def nix_build(flags: list[str], gcroot: Path | None = None) -> list[str]:
*(["--show-trace"] if log.isEnabledFor(logging.DEBUG) else []),
*(["--out-root", str(gcroot)] if gcroot is not None else ["--no-link"]),
*flags,
]
],
)
@@ -86,7 +86,7 @@ def nix_eval(flags: list[str]) -> list[str]:
*(["--show-trace"] if log.isEnabledFor(logging.DEBUG) else []),
"--json",
"--print-build-logs",
]
],
)
if os.environ.get("IN_NIX_SANDBOX"):
return [
@@ -132,12 +132,10 @@ class Packages:
@classmethod
def is_provided(cls: type["Packages"], program: str) -> bool:
"""
Determines if a program is shipped with the clan package.
"""
"""Determines if a program is shipped with the clan package."""
if cls.static_packages is None:
cls.static_packages = set(
os.environ.get("CLAN_PROVIDED_PACKAGES", "").split(":")
os.environ.get("CLAN_PROVIDED_PACKAGES", "").split(":"),
)
if "#" in program: