Skip to content

Commit

Permalink
when filtering we can't use the convert script as we removed them
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Jan 10, 2025
1 parent 8ce1e95 commit d6f446f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/tests_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d6f446f

Please sign in to comment.