diff --git a/scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py b/scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py index 66b8db86f6ea8..3bcd31c6886b5 100755 --- a/scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py +++ b/scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py @@ -303,8 +303,8 @@ def run_local_mypy(project: str, hook_name: str, files: list[str], config_file: print("No files to test. Quitting") sys.exit(0) - write_file_list(all_files_to_check) - file_argument_ci = "@/files/mypy_files.txt" + mypy_file_list = write_file_list(all_files_to_check, suffix=mypy_folders[0].replace("/", "-")) + file_argument_ci = f"@/files/{mypy_file_list.name}" mypy_cmd = ( f"TERM=ansi mypy --follow-imports=silent {shlex.quote(file_argument_ci)} {' '.join(mypy_extra_args)}"