From f7aaaab4cb6d80cd0c407a2a474bf671e3d4ea01 Mon Sep 17 00:00:00 2001 From: Saga4 Date: Thu, 29 May 2025 03:20:16 +0530 Subject: [PATCH] branchmark_root_check --- codeflash/cli_cmds/cmd_init.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codeflash/cli_cmds/cmd_init.py b/codeflash/cli_cmds/cmd_init.py index 66ef8a14b..aaa8cbe53 100644 --- a/codeflash/cli_cmds/cmd_init.py +++ b/codeflash/cli_cmds/cmd_init.py @@ -514,7 +514,8 @@ def install_github_actions(override_formatter_check: bool = False) -> None: # n from importlib.resources import files benchmark_mode = False - if "benchmarks_root" in config: + benchmarks_root = config.get("benchmarks_root", "").strip() + if benchmarks_root and benchmarks_root != "": benchmark_mode = inquirer_wrapper( inquirer.confirm, message="⚡️It looks like you've configured a benchmarks_root in your config. Would you like to run the Github action in benchmark mode? "