Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions codeflash/api/cfapi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"""Module for interacting with the Codeflash API."""

from __future__ import annotations

import json
Expand Down
4 changes: 2 additions & 2 deletions codeflash/cli_cmds/cmd_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def get_valid_subdirs(current_dir: Optional[Path] = None) -> list[str]:
]


def get_suggestions(section: str) -> tuple(list[str], Optional[str]):
def get_suggestions(section: str) -> tuple[list[str], Optional[str]]:
valid_subdirs = get_valid_subdirs()
if section == CommonSections.module_root:
return [d for d in valid_subdirs if d != "tests"], None
Expand Down Expand Up @@ -391,7 +391,7 @@ def collect_setup_info() -> CLISetupInfo:
tests_root_answer = tests_answers["tests_root"]

if tests_root_answer == create_for_me_option:
tests_root = Path(curdir) / default_tests_subdir
tests_root = Path(curdir) / (default_tests_subdir or "tests")
tests_root.mkdir()
click.echo(f"✅ Created directory {tests_root}{os.path.sep}{LF}")
elif tests_root_answer == custom_dir_option:
Expand Down
Loading