Skip to content

Commit db35e50

Browse files
committed
feat: Allow major version to be zero
1 parent abe00fb commit db35e50

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

template/pyproject.toml.jinja

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,23 @@ version_toml = ["pyproject.toml:project.version"]
5252
type = "gitlab"
5353
{% endif -%}
5454
55+
# Commit parser - this should be at the top level
56+
commit_parser = "conventional"
57+
58+
# Allow 0.x.x versions (prevents jumping straight to 1.0.0)
59+
allow_zero_version = true
60+
61+
# Don't do major version bumps when in 0.x.x
62+
major_on_zero = false
63+
64+
# Tag format
65+
tag_format = "v{version}"
66+
67+
# Branch configuration
68+
[tool.semantic_release.branches.main]
69+
match = "main"
70+
prerelease = false
71+
5572
build_command = """
5673
python -m pip install -e '.[build]'
5774
uv lock --upgrade-package {{project_name}}

0 commit comments

Comments
 (0)