Skip to content

Commit d6f446f

Browse files
committed
when filtering we can't use the convert script as we removed them
1 parent 8ce1e95 commit d6f446f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/tests_fetcher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ def create_reverse_dependency_map() -> Dict[str, List[str]]:
885885
example_deps, examples = init_test_examples_dependencies()
886886
# Add all modules and all tests to all examples
887887
all_modules = list(PATH_TO_TRANFORMERS.glob("**/*.py")) + list(PATH_TO_TESTS.glob("**/*.py")) + examples
888-
all_modules = [str(mod.relative_to(PATH_TO_REPO)) for mod in all_modules]
888+
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)))]
889889
# Compute the direct dependencies of all modules.
890890
direct_deps = {m: get_module_dependencies(m, cache=cache) for m in all_modules}
891891
direct_deps.update(example_deps)

0 commit comments

Comments
 (0)