Skip to content

Commit 9f6b56c

Browse files
Merge branch 'main' into update-benchmark-docs
2 parents 256d9ab + f2f6efe commit 9f6b56c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

codeflash/LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Business Source License 1.1
33
Parameters
44

55
Licensor: CodeFlash Inc.
6-
Licensed Work: Codeflash Client version 0.10.x
6+
Licensed Work: Codeflash Client version 0.12.x
77
The Licensed Work is (c) 2024 CodeFlash Inc.
88

99
Additional Use Grant: None. Production use of the Licensed Work is only permitted
@@ -13,7 +13,7 @@ Additional Use Grant: None. Production use of the Licensed Work is only permitte
1313
Platform. Please visit codeflash.ai for further
1414
information.
1515

16-
Change Date: 2029-02-25
16+
Change Date: 2029-04-23
1717

1818
Change License: MIT
1919

codeflash/cli_cmds/cmd_init.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def collect_setup_info() -> SetupInfo:
160160
# Check for the existence of pyproject.toml or setup.py
161161
project_name = check_for_toml_or_setup_file()
162162

163-
ignore_subdirs = ["venv", "node_modules", "dist", "build", "build_temp", "build_scripts", "env", "logs", "tmp"]
163+
ignore_subdirs = ["venv", "node_modules", "dist", "build", "build_temp", "build_scripts", "env", "logs", "tmp", "__pycache__"]
164164
valid_subdirs = [
165165
d for d in next(os.walk("."))[1] if not d.startswith(".") and not d.startswith("__") and d not in ignore_subdirs
166166
]
@@ -255,16 +255,17 @@ def collect_setup_info() -> SetupInfo:
255255
tests_subdirs = [d.name for d in tests_root.iterdir() if d.is_dir() and not d.name.startswith(".")]
256256

257257
benchmarks_options = []
258+
benchmarks_options.append(no_benchmarks_option)
258259
if default_benchmarks_subdir in tests_subdirs:
259260
benchmarks_options.append(default_benchmarks_subdir)
260-
benchmarks_options.extend([d for d in tests_subdirs if d != default_benchmarks_subdir])
261+
benchmarks_options.extend([d for d in tests_subdirs if d != default_benchmarks_subdir and d not in ignore_subdirs])
261262
benchmarks_options.append(create_benchmarks_option)
262263
benchmarks_options.append(custom_dir_option)
263-
benchmarks_options.append(no_benchmarks_option)
264+
264265

265266
benchmarks_answer = inquirer_wrapper(
266267
inquirer.list_input,
267-
message="Where are your benchmarks located? (benchmarks must be a sub directory of your tests root directory)",
268+
message="Where are your performance benchmarks located? (benchmarks must be a sub directory of your tests root directory)",
268269
choices=benchmarks_options,
269270
default=(
270271
default_benchmarks_subdir if default_benchmarks_subdir in benchmarks_options else benchmarks_options[0]),

0 commit comments

Comments
 (0)