From 726df217ec69911c14340e3b523562a2cf31cfba Mon Sep 17 00:00:00 2001 From: Jonathan Teran Carballo Date: Fri, 17 Jul 2026 22:04:56 -0300 Subject: [PATCH] style: format and organize imports --- src/git_flow/command/branch.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/git_flow/command/branch.py b/src/git_flow/command/branch.py index 089831a..1c78dc3 100644 --- a/src/git_flow/command/branch.py +++ b/src/git_flow/command/branch.py @@ -1,19 +1,22 @@ +from typing import Annotated + +import typer +from rich.console import Console + +import git_flow.command.base as base from git_flow import ( TRASH_BRANCH_PREFIX, WIP_BRANCH_PREFIX, GitFlowError, ) -import git_flow.command.base as base from git_flow.git import Git -from typing import Annotated -import typer -from rich.console import Console BRANCH_FORMAT = "%(refname:short)" app = typer.Typer() console = Console() + @app.command() def branch( environment: Annotated[ @@ -79,7 +82,9 @@ def show_branches(branch_prefix: str, current_branch: str): def get_branches(branch_prefix: str): - return Git("for-each-ref", "refs/heads/" + branch_prefix, format=BRANCH_FORMAT).lines() + return Git( + "for-each-ref", "refs/heads/" + branch_prefix, format=BRANCH_FORMAT + ).lines() def show_all_branches(environments: list[str], current_branch: str):