mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-14 07:13:51 +01:00
misc cleanup and linting
This commit is contained in:
parent
76fe72da43
commit
033a324488
12 changed files with 179 additions and 235 deletions
|
|
@ -84,7 +84,6 @@ PART_PATTERNS = {
|
|||
'MAJOR': r"[0-9]+",
|
||||
'MINOR': r"[0-9]+",
|
||||
'PATCH': r"[0-9]+",
|
||||
'MICRO': r"[0-9]+",
|
||||
'BUILD': r"[0-9]+",
|
||||
'BLD' : r"[1-9][0-9]*",
|
||||
'TAG' : r"(?:alpha|beta|dev|pre|rc|post|final)",
|
||||
|
|
@ -110,7 +109,6 @@ PATTERN_PART_FIELDS = {
|
|||
'MAJOR': 'major',
|
||||
'MINOR': 'minor',
|
||||
'PATCH': 'patch',
|
||||
'MICRO': 'patch',
|
||||
'BUILD': 'bid',
|
||||
'BLD' : 'bid',
|
||||
'TAG' : 'tag',
|
||||
|
|
@ -193,7 +191,6 @@ PART_FORMATS: typ.Dict[str, typ.Callable[[FieldValue], str]] = {
|
|||
'MAJOR': _fmt_num,
|
||||
'MINOR': _fmt_num,
|
||||
'PATCH': _fmt_num,
|
||||
'MICRO': _fmt_num,
|
||||
'BUILD': _fmt_num,
|
||||
'BLD' : _fmt_bld,
|
||||
'TAG' : _fmt_num,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue