Skip to content

Commit fcc30b7

Browse files
warn message if the user provide same module root and test root
1 parent ae63d4a commit fcc30b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

codeflash/cli_cmds/cmd_init.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ def init_codeflash() -> None:
7272

7373
if should_modify_pyproject_toml():
7474
setup_info: SetupInfo = collect_setup_info()
75-
75+
if Path(setup_info.module_root).resolve() == Path(setup_info.tests_root).resolve():
76+
logger.warning(
77+
"It looks like your tests root is the same as your module root. This is not recommended and can lead to unexpected behavior."
78+
)
7679
configure_pyproject_toml(setup_info)
7780

7881
install_github_app()

0 commit comments

Comments
 (0)