We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 47a3778 + 6bc06f1 commit 7a6b204Copy full SHA for 7a6b204
1 file changed
codeflash/cli_cmds/cmd_init.py
@@ -1091,9 +1091,10 @@ def install_github_actions(override_formatter_check: bool = False) -> None:
1091
1092
def determine_dependency_manager(pyproject_data: dict[str, Any]) -> DependencyManager:
1093
"""Determine which dependency manager is being used based on pyproject.toml contents."""
1094
- if (Path.cwd() / "poetry.lock").exists():
+ cwd = Path.cwd()
1095
+ if (cwd / "poetry.lock").exists():
1096
return DependencyManager.POETRY
- if (Path.cwd() / "uv.lock").exists():
1097
+ if (cwd / "uv.lock").exists():
1098
return DependencyManager.UV
1099
if "tool" not in pyproject_data:
1100
return DependencyManager.PIP
0 commit comments