Skip to content

Make uv.lock optional bump #1383

Open
Open
@Lee-W

Description

@Lee-W

Description

uv.lock might not exists when the project is just initialized

Steps to reproduce

git init
uv init
cz init
sed  -i -e 's/pep621/uv/g' pyproject.toml pyproject.toml
git add .
cz commit
cz bump

Current behavior

FileNotFoundError: [Errno 2] No such file or directory: 'uv.lock'

Desired behavior

It should skip if uv.lock is not there yet.

Screenshots

No response

Environment

Commitizen Version: 4.5.0
Python Version: 3.12.7 (main, Oct 16 2024, 07:12:08) [Clang 18.1.8 ]
Operating System: Darwin

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions