@@ -462,7 +462,7 @@ def determine_dependency_manager(pyproject_data: dict[str, Any]) -> DependencyMa
462462 return DependencyManager .POETRY
463463
464464 # Check for uv
465- if any (key .startswith ("uv" ) for key in tool_section . keys () ):
465+ if any (key .startswith ("uv" ) for key in tool_section ):
466466 return DependencyManager .UV
467467
468468 # Look for pip-specific markers
@@ -555,9 +555,8 @@ def customize_codeflash_yaml_content(
555555
556556 # Add codeflash command
557557 codeflash_cmd = get_codeflash_github_action_command (dep_manager )
558- optimize_yml_content = optimize_yml_content .replace ("{{ codeflash_command }}" , codeflash_cmd )
558+ return optimize_yml_content .replace ("{{ codeflash_command }}" , codeflash_cmd )
559559
560- return optimize_yml_content
561560
562561
563562# Create or update the pyproject.toml file with the Codeflash dependency & configuration
@@ -596,7 +595,7 @@ def configure_pyproject_toml(setup_info: SetupInfo) -> None:
596595 formatter_cmds .append ("disabled" )
597596 if formatter in ["black" , "ruff" ]:
598597 try :
599- result = subprocess .run ([formatter ], capture_output = True , check = False )
598+ subprocess .run ([formatter ], capture_output = True , check = False )
600599 except FileNotFoundError :
601600 click .echo (f"⚠️ Formatter not found: { formatter } , please ensure it is installed" )
602601 codeflash_section ["formatter-cmds" ] = formatter_cmds
0 commit comments