Skip to content

Commit 66d84b9

Browse files
authored
feat: select uv as commitizen's version provider (#293)
1 parent c1fb97e commit 66d84b9

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ name = "substrate"
33
version = "1.2.0"
44
requires-python = ">=3.10"
55
dependencies = [
6-
"commitizen>=4.1.0",
6+
"commitizen>=4.3.0",
77
"copier>=9.4.1",
88
"pre-commit>=4.1.0",
99
"ruff>=0.9.3",
1010
]
1111

1212
[tool.commitizen]
1313
bump_message = "bump: v$current_version → v$new_version"
14-
pre_bump_hooks = ["uv lock --offline --upgrade-package substrate"]
1514
tag_format = "v$version"
1615
update_changelog_on_bump = true
17-
version_provider = "pep621"
16+
version_provider = "uv"

template/pyproject.toml.jinja

+2-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ issues = "{{ project_url.rstrip('/') }}/{% if ci == 'gitlab' %}-/{% endif %}issu
3838
[dependency-groups] # https://docs.astral.sh/uv/concepts/projects/dependencies/#development-dependencies
3939
dev = [
4040
{%- if with_conventional_commits %}
41-
"commitizen (>=4.1.0)",
41+
"commitizen (>=4.3.0)",
4242
{%- endif %}
4343
"coverage[toml] (>=7.6.10)",
4444
"ipykernel (>=6.29.4)",
@@ -62,10 +62,9 @@ dev = [
6262

6363
[tool.commitizen] # https://commitizen-tools.github.io/commitizen/config/
6464
bump_message = "bump: v$current_version → v$new_version"
65-
pre_bump_hooks = ["uv lock --offline --upgrade-package {{ project_name_kebab_case }}"]
6665
tag_format = "v$version"
6766
update_changelog_on_bump = true
68-
version_provider = "pep621"
67+
version_provider = "uv"
6968
{%- endif %}
7069

7170
[tool.coverage.report] # https://coverage.readthedocs.io/en/latest/config.html#report

uv.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)