We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa1b7c commit aa9971eCopy full SHA for aa9971e
commitizen/commands/init.py
@@ -32,6 +32,10 @@ def has_setup(self) -> bool:
32
def has_pre_commit_config(self) -> bool:
33
return os.path.isfile(".pre-commit-config.yaml")
34
35
+ @property
36
+ def has_uv_lock(self) -> bool:
37
+ return os.path.isfile("uv.lock")
38
+
39
@property
40
def is_python_poetry(self) -> bool:
41
if not self.has_pyproject:
@@ -260,7 +264,7 @@ def _ask_version_provider(self) -> str:
260
264
def _ask_version_scheme(self) -> str:
261
265
"""Ask for setting: version_scheme"""
262
266
default = "semver"
263
- if self.project_info.is_python:
267
+ if self.project_info.is_python or self.project_info.has_uv_lock:
268
default = "pep440"
269
270
scheme: str = questionary.select(
0 commit comments