@@ -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