From d6f446ffa79811d35484d445bc5c7932e8a536d6 Mon Sep 17 00:00:00 2001 From: Arthur Zucker Date: Fri, 10 Jan 2025 11:29:31 +0100 Subject: [PATCH] when filtering we can't use the convert script as we removed them --- utils/tests_fetcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/tests_fetcher.py b/utils/tests_fetcher.py index c641ccb21e29..0eb2a9b4cc36 100644 --- a/utils/tests_fetcher.py +++ b/utils/tests_fetcher.py @@ -885,7 +885,7 @@ def create_reverse_dependency_map() -> Dict[str, List[str]]: example_deps, examples = init_test_examples_dependencies() # Add all modules and all tests to all examples all_modules = list(PATH_TO_TRANFORMERS.glob("**/*.py")) + list(PATH_TO_TESTS.glob("**/*.py")) + examples - all_modules = [str(mod.relative_to(PATH_TO_REPO)) for mod in all_modules] + all_modules = [str(mod.relative_to(PATH_TO_REPO)) for mod in all_modules if not ("models" in str(mod.relative_to(PATH_TO_REPO)) and "convert_" in str(mod.relative_to(PATH_TO_REPO)))] # Compute the direct dependencies of all modules. direct_deps = {m: get_module_dependencies(m, cache=cache) for m in all_modules} direct_deps.update(example_deps)