Created
July 25, 2025 17:35
-
-
Save mykelalvis/72af1e110ab620743f6e987d7ac820f8 to your computer and use it in GitHub Desktop.
calver_bumpversion_leading_zeros
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [tool.bumpversion] | |
| current_version = "2025.07.24" | |
| parse = """(?x) # Verbose mode | |
| (?P<release> # The release part | |
| (?:[1-9][0-9]{3})\\. # YYYY. | |
| (?:1[0-2]|0[1-9])\\. # 0M. | |
| (?:3[0-1]|[1-2][0-9]|0[1-9]) # 0D | |
| ) | |
| (?:\\.(?P<patch>\\d+))? # .patch, optional | |
| """ | |
| serialize = ["{release}.{patch}", "{release}"] | |
| search = "{current_version}" | |
| replace = "{new_version}" | |
| regex = false | |
| ignore_missing_version = false | |
| ignore_missing_files = false | |
| tag = false | |
| sign_tags = false | |
| tag_name = "v{new_version}" | |
| tag_message = "Bump version: {current_version} → {new_version}" | |
| allow_dirty = false | |
| commit = false | |
| message = "Bump version: {current_version} → {new_version}" | |
| moveable_tags = [] | |
| commit_args = "" | |
| setup_hooks = [] | |
| pre_commit_hooks = [] | |
| post_commit_hooks = [] | |
| [tool.bumpversion.parts.release] | |
| calver_format = "{YYYY}.{0M}.{0D}" | |
| [[tool.bumpversion.files]] | |
| filename = "vars.auto.pkrvars.hcl" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment