enable comprehensions linting rules

This commit is contained in:
Jörg Thalheim
2024-09-02 13:32:29 +02:00
parent 35839ef701
commit e9a266001c
19 changed files with 146 additions and 151 deletions

View File

@@ -10,7 +10,7 @@ T = TypeVar("T")
class MachineGroup:
def __init__(self, machines: list[Machine]) -> None:
self.group = HostGroup(list(m.target_host for m in machines))
self.group = HostGroup([m.target_host for m in machines])
def run_function(
self, func: Callable[[Machine], T], check: bool = True

View File

@@ -144,7 +144,7 @@ class Machine:
config = nix_config()
system = config["system"]
file_info = dict()
file_info = {}
with NamedTemporaryFile(mode="w") as config_json:
if extra_config is not None:
json.dump(extra_config, config_json, indent=2)