treefmt/ruff: Set python lint version to 3.13. Fix all new lints coming up.
This commit is contained in:
@@ -16,14 +16,14 @@ from typing import (
|
||||
)
|
||||
|
||||
from clan_lib.api.util import JSchemaTypeError
|
||||
from clan_lib.errors import ClanError
|
||||
from .serde import dataclass_to_dict, from_dict, sanitize_string
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
from .serde import dataclass_to_dict, from_dict, sanitize_string
|
||||
|
||||
__all__ = ["dataclass_to_dict", "from_dict", "sanitize_string"]
|
||||
|
||||
from clan_lib.errors import ClanError
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
@@ -42,7 +42,10 @@ def delete_machine(machine: Machine) -> None:
|
||||
|
||||
# louis@(2025-02-04): clean-up legacy (pre-vars) secrets:
|
||||
sops_folder = sops_secrets_folder(machine.flake.path)
|
||||
filter_fn = lambda secret_name: secret_name.startswith(f"{machine.name}-")
|
||||
|
||||
def filter_fn(secret_name: str) -> bool:
|
||||
return secret_name.startswith(f"{machine.name}-")
|
||||
|
||||
for secret_name in list_secrets(machine.flake.path, filter_fn):
|
||||
secret_path = sops_folder / secret_name
|
||||
changed_paths.append(secret_path)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# ruff: noqa: SLF001
|
||||
import ipaddress
|
||||
import logging
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user