classBranches(str,Enum):# noqa: WPS600"""Default branches to use for the supported workflows."""master='master'develop='develop'release='release'hotfix='hotfix'def__str__(self:'Branches')->str:"""Return the string representation of the Branch. Returns: The string representation of the Branch. """returnself.value
def__str__(self:'Branches')->str:"""Return the string representation of the Branch. Returns: The string representation of the Branch. """returnself.value
classGitFlowConfig(BaseModel):"""An object mapping branches for the git_flow workflow."""master_branch:str|Branches=Branches.masterdevelop_branch:str|Branches=Branches.developrelease_prefix:str|Branches=Branches.releasehotfix_prefix:str|Branches=Branches.hotfix
classMFlowConfig(BaseModel):"""An object mapping branches for the m_flow workflow."""master_branch:str|Branches=Branches.masterrelease_prefix:str|Branches=Branches.releasehotfix_prefix:str|Branches=Branches.hotfix
classWorkflow(str,Enum):# noqa: WPS600"""Supported workflows."""git_flow='git_flow'm_flow='m_flow'free_flow='free_flow'def__str__(self:'Workflow')->str:"""Return the string representation of the workflow. Returns: The string representation of the workflow. """returnself.value
def__str__(self:'Workflow')->str:"""Return the string representation of the workflow. Returns: The string representation of the workflow. """returnself.value