Skip to content

Commit 3a92e1f

Browse files
committed
style(CustomBumpRule): rename var
1 parent 0966718 commit 3a92e1f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎commitizen/bump_rule.py‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,17 @@ def get_increment(
180180
ifnot (m:=self.bump_pattern.search(commit_message)):
181181
returnNone
182182

183-
bump_map= (
183+
effective_bump_map= (
184184
self.bump_map_major_version_zeroifmajor_version_zeroelseself.bump_map
185185
)
186186

187187
try:
188188
ifret:=SemVerIncrement.get_highest(
189-
(incrementforname, incrementinbump_map.items() ifm.group(name)),
189+
(
190+
increment
191+
forname, incrementineffective_bump_map.items()
192+
ifm.group(name)
193+
),
190194
):
191195
returnret
192196
exceptIndexError:
@@ -195,7 +199,7 @@ def get_increment(
195199

196200
# Fallback to old school bump rule
197201
found_keyword=m.group(1)
198-
formatch_pattern, incrementinbump_map.items():
202+
formatch_pattern, incrementineffective_bump_map.items():
199203
ifre.match(match_pattern, found_keyword):
200204
returnincrement
201205
returnNone

0 commit comments

Comments
(0)