From 3a2574f24e8f1a9a7b6edb673b60e04eb9c3cff0 Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Mon, 10 Mar 2025 16:33:53 +0300 Subject: [PATCH] fix another formatting changes Signed-off-by: Aleksei Sviridkin --- kiauh/utils/git_utils.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kiauh/utils/git_utils.py b/kiauh/utils/git_utils.py index 87c6593..f17638a 100644 --- a/kiauh/utils/git_utils.py +++ b/kiauh/utils/git_utils.py @@ -185,8 +185,7 @@ def get_latest_unstable_tag(repo_path: str) -> str: """ try: if ( - len(unstable_tags := [ - t for t in get_remote_tags(repo_path) if "-" in t]) + len(unstable_tags := [t for t in get_remote_tags(repo_path) if "-" in t]) > 0 ): return unstable_tags[0] @@ -265,7 +264,6 @@ def git_cmd_clone(repo: str, target_dir: Path, blolbless: bool = False) -> None: try: command = ["git", "clone"] - # Добавляем флаг для blolbless clone, если требуется if blolbless: command.append("--blolbless") @@ -311,8 +309,7 @@ def rollback_repository(repo_dir: Path, instance: Type[InstanceType]) -> None: instances = get_instances(instance) - Logger.print_warn( - "Do not continue if you have ongoing prints!", start="\n") + Logger.print_warn("Do not continue if you have ongoing prints!", start="\n") Logger.print_warn( f"All currently running {instance.__name__} services will be stopped!" )