style: organize imports
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
import typer
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from git_flow import COMMIT_TYPES, TRASH_BRANCH_PREFIX, WIP_BRANCH_PREFIX, GitFlowError
|
|
||||||
from git_flow.git import Git
|
import typer
|
||||||
|
|
||||||
import git_flow.command.base as base
|
import git_flow.command.base as base
|
||||||
|
from git_flow import TRASH_BRANCH_PREFIX, WIP_BRANCH_PREFIX, GitFlowError
|
||||||
|
from git_flow.git import Git
|
||||||
|
|
||||||
app = typer.Typer()
|
app = typer.Typer()
|
||||||
|
|
||||||
@@ -21,7 +23,7 @@ def commit():
|
|||||||
raise GitFlowError("Debe agregar algún cambio al indice para continuar.")
|
raise GitFlowError("Debe agregar algún cambio al indice para continuar.")
|
||||||
|
|
||||||
message = base.get_commit_message()
|
message = base.get_commit_message()
|
||||||
commit_type = message[:message.index(':')]
|
commit_type = message[: message.index(":")]
|
||||||
|
|
||||||
if branch.startswith(WIP_BRANCH_PREFIX):
|
if branch.startswith(WIP_BRANCH_PREFIX):
|
||||||
original_branch = branch.removeprefix(WIP_BRANCH_PREFIX)
|
original_branch = branch.removeprefix(WIP_BRANCH_PREFIX)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import typer
|
import typer
|
||||||
|
|
||||||
|
import git_flow.command.base as base
|
||||||
from git_flow import FLOWCONFIG_FILENAME, FLOWCONFIG_VERSION, GitFlowError
|
from git_flow import FLOWCONFIG_FILENAME, FLOWCONFIG_VERSION, GitFlowError
|
||||||
from git_flow.git import Git
|
from git_flow.git import Git
|
||||||
import git_flow.command.base as base
|
|
||||||
|
|
||||||
app = typer.Typer()
|
app = typer.Typer()
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import typer
|
import typer
|
||||||
|
|
||||||
|
import git_flow.command.base as base
|
||||||
from git_flow import GitFlowError
|
from git_flow import GitFlowError
|
||||||
from git_flow.changelog import Changelog
|
from git_flow.changelog import Changelog
|
||||||
import git_flow.command.base as base
|
|
||||||
from git_flow.git import Git
|
from git_flow.git import Git
|
||||||
|
|
||||||
app = typer.Typer()
|
app = typer.Typer()
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
import typer
|
|
||||||
from git_flow import BRANCH_TYPES
|
|
||||||
import git_flow.command.base as base
|
|
||||||
from git_flow.git import Git
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
import typer
|
||||||
|
|
||||||
|
import git_flow.command.base as base
|
||||||
|
from git_flow import BRANCH_TYPES
|
||||||
|
from git_flow.git import Git
|
||||||
|
|
||||||
app = typer.Typer()
|
app = typer.Typer()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
|
from typing import Optional
|
||||||
|
|
||||||
|
import typer
|
||||||
|
|
||||||
|
import git_flow.command.base as base
|
||||||
from git_flow import COMMIT_TYPES, GitFlowError
|
from git_flow import COMMIT_TYPES, GitFlowError
|
||||||
from git_flow.git import Git
|
from git_flow.git import Git
|
||||||
from typing import Optional
|
|
||||||
import typer
|
|
||||||
import git_flow.command.base as base
|
|
||||||
|
|
||||||
app = typer.Typer()
|
app = typer.Typer()
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
from typing import Optional
|
||||||
|
|
||||||
|
import typer
|
||||||
|
|
||||||
|
import git_flow.command.base as base
|
||||||
from git_flow import (
|
from git_flow import (
|
||||||
COMMIT_TYPE_INCREMENT,
|
COMMIT_TYPE_INCREMENT,
|
||||||
SEMVER_MAJOR,
|
SEMVER_MAJOR,
|
||||||
@@ -7,10 +12,7 @@ from git_flow import (
|
|||||||
GitFlowError,
|
GitFlowError,
|
||||||
)
|
)
|
||||||
from git_flow.changelog import Changelog
|
from git_flow.changelog import Changelog
|
||||||
import git_flow.command.base as base
|
|
||||||
from git_flow.git import Git
|
from git_flow.git import Git
|
||||||
from typing import Optional
|
|
||||||
import typer
|
|
||||||
|
|
||||||
app = typer.Typer()
|
app = typer.Typer()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user