Commit 06f0ad57 authored by heroinedor's avatar heroinedor

code formatting

parent 1d711c98
......@@ -24,6 +24,7 @@ TYPES = {
'other': 'other',
}
def parse_commit_message(message: str) -> Tuple[int, str, str, Tuple[str, str, str]]:
"""
Parses a commit message according to the StartinBlox rules to define release
......@@ -34,7 +35,7 @@ def parse_commit_message(message: str) -> Tuple[int, str, str, Tuple[str, str, s
# parse message
parsed = re_parser.match(message)
if not parsed:
raise UnknownCommitMessageStyleError(
raise UnknownCommitMessageStyleError(
'Unable to parse the given commit message: {}'.format(message)
)
......@@ -54,7 +55,7 @@ def parse_commit_message(message: str) -> Tuple[int, str, str, Tuple[str, str, s
# set type to 'other' by default
_type = TYPES['other']
if parsed.group('type') in TYPES:
_type = TYPES[parsed.group('type')]
_type = TYPES[parsed.group('type')]
return (
level_bump,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment