mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 22:40:09 +01:00
add week pattern validation
This commit is contained in:
parent
ec4d051e7c
commit
fb2f3f11fd
2 changed files with 26 additions and 0 deletions
|
|
@ -269,6 +269,8 @@ def _parse_config(raw_cfg: RawConfig) -> Config:
|
|||
f"Invalid character(s) '{invalid_chars.group(1)}'"
|
||||
f" in pycalver.version_pattern = {raw_cfg['version_pattern']}"
|
||||
)
|
||||
if not v2version.is_valid_week_pattern(version_pattern):
|
||||
raise ValueError(f"Invalid week number pattern: {version_pattern}")
|
||||
|
||||
# TODO (mb 2020-09-18): Validate Pattern
|
||||
# detect YY with WW or UU -> suggest GG with VV
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue