@@ -352,7 +352,7 @@ def _handle_show_config() -> None:
352352 from codeflash .setup .detector import detect_project , has_existing_config
353353
354354 project_root = Path .cwd ()
355- config_exists , config_file = has_existing_config (project_root )
355+ config_exists , _ = has_existing_config (project_root )
356356
357357 if config_exists :
358358 from codeflash .code_utils .config_parser import parse_config_file
@@ -373,10 +373,7 @@ def _handle_show_config() -> None:
373373 table .add_row ("Module root" , config .get ("module_root" , "(not set)" ))
374374 table .add_row ("Tests root" , config .get ("tests_root" , "(not set)" ))
375375 table .add_row ("Test runner" , config .get ("test_framework" , config .get ("pytest_cmd" , "(not set)" )))
376- table .add_row (
377- "Formatter" ,
378- ", " .join (config ["formatter_cmds" ]) if config .get ("formatter_cmds" ) else "(not set)" ,
379- )
376+ table .add_row ("Formatter" , ", " .join (config ["formatter_cmds" ]) if config .get ("formatter_cmds" ) else "(not set)" )
380377 ignore_paths = config .get ("ignore_paths" , [])
381378 table .add_row ("Ignore paths" , ", " .join (str (p ) for p in ignore_paths ) if ignore_paths else "(none)" )
382379 else :
@@ -396,12 +393,9 @@ def _handle_show_config() -> None:
396393 table .add_row ("Module root" , str (detected .module_root ))
397394 table .add_row ("Tests root" , str (detected .tests_root ) if detected .tests_root else "(not detected)" )
398395 table .add_row ("Test runner" , detected .test_runner or "(not detected)" )
396+ table .add_row ("Formatter" , ", " .join (detected .formatter_cmds ) if detected .formatter_cmds else "(not detected)" )
399397 table .add_row (
400- "Formatter" , ", " .join (detected .formatter_cmds ) if detected .formatter_cmds else "(not detected)"
401- )
402- table .add_row (
403- "Ignore paths" ,
404- ", " .join (str (p ) for p in detected .ignore_paths ) if detected .ignore_paths else "(none)" ,
398+ "Ignore paths" , ", " .join (str (p ) for p in detected .ignore_paths ) if detected .ignore_paths else "(none)"
405399 )
406400 table .add_row ("Confidence" , f"{ detected .confidence :.0%} " )
407401
0 commit comments