@@ -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,7 @@ 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 )
559-
560- return optimize_yml_content
558+ return optimize_yml_content .replace ("{{ codeflash_command }}" , codeflash_cmd )
561559
562560
563561# Create or update the pyproject.toml file with the Codeflash dependency & configuration
@@ -596,8 +594,8 @@ def configure_pyproject_toml(setup_info: SetupInfo) -> None:
596594 formatter_cmds .append ("disabled" )
597595 if formatter in ["black" , "ruff" ]:
598596 try :
599- result = subprocess .run ([formatter ], capture_output = True , check = False )
600- except FileNotFoundError as e :
597+ subprocess .run ([formatter ], capture_output = True , check = False )
598+ except FileNotFoundError :
601599 click .echo (f"⚠️ Formatter not found: { formatter } , please ensure it is installed" )
602600 codeflash_section ["formatter-cmds" ] = formatter_cmds
603601 # Add the 'codeflash' section, ensuring 'tool' section exists
0 commit comments