Skip to content

Commit efb195b

Browse files
committed
don't ask the user for benchmark root dir
1 parent 90d29d8 commit efb195b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

codeflash/cli_cmds/cmd_init.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -522,15 +522,8 @@ def install_github_actions(override_formatter_check: bool = False) -> None: # n
522522
workflows_path.mkdir(parents=True, exist_ok=True)
523523
from importlib.resources import files
524524

525-
benchmark_mode = False
526525
benchmarks_root = config.get("benchmarks_root", "").strip()
527-
if benchmarks_root and benchmarks_root != "":
528-
benchmark_mode = inquirer_wrapper(
529-
inquirer.confirm,
530-
message="⚡️It looks like you've configured a benchmarks_root in your config. Would you like to run the Github action in benchmark mode? "
531-
" This will show the impact of Codeflash's suggested optimizations on your benchmarks",
532-
default=True,
533-
)
526+
benchmark_mode = bool(benchmarks_root)
534527

535528
optimize_yml_content = (
536529
files("codeflash").joinpath("cli_cmds", "workflows", "codeflash-optimize.yaml").read_text(encoding="utf-8")
@@ -686,7 +679,6 @@ def customize_codeflash_yaml_content(
686679

687680
# Add codeflash command
688681
codeflash_cmd = get_codeflash_github_action_command(dep_manager)
689-
690682
if benchmark_mode:
691683
codeflash_cmd += " --benchmark"
692684
return optimize_yml_content.replace("{{ codeflash_command }}", codeflash_cmd)

0 commit comments

Comments
 (0)