diff --git a/cookiecutter/ci/{{ cookiecutter.__project_name }}/pyproject.toml.update b/cookiecutter/ci/{{ cookiecutter.__project_name }}/pyproject.toml.update index 13a26746b..b0fea4b76 100644 --- a/cookiecutter/ci/{{ cookiecutter.__project_name }}/pyproject.toml.update +++ b/cookiecutter/ci/{{ cookiecutter.__project_name }}/pyproject.toml.update @@ -72,6 +72,7 @@ paralleltests = {{ cookiecutter.paralleltests | toml_value }} # This section is managed by the cookiecutter templates. current_version = "{{ cookiecutter.current_version }}" commit = false +pre_commit_hooks = ["uv lock", "git add uv.lock"] tag = false parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)(\\.(?P[a-z]+))?" serialize = [ diff --git a/pyproject.toml b/pyproject.toml index 0491dd4bc..5cee4af92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -123,6 +123,7 @@ paralleltests = true # This section is managed by the cookiecutter templates. current_version = "0.40.0.dev" commit = false +pre_commit_hooks = ["uv lock", "git add uv.lock"] tag = false parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)(\\.(?P[a-z]+))?" serialize = [