@@ -56,16 +56,15 @@ def _iter_one(self, dependency: Dependency, graph: DependencyGraph, root_path: P
56
56
self ._lineage .append (dependency )
57
57
self ._walked_paths .add (dependency .path )
58
58
self ._log_walk_one (dependency )
59
- if dependency .path .is_file () or is_a_notebook (dependency .path ):
60
- inherited_tree = graph .root .build_inherited_tree (root_path , dependency .path )
61
- path_lookup = self ._path_lookup .change_directory (dependency .path .parent )
62
- yield from self ._process_dependency (dependency , path_lookup , inherited_tree )
63
- maybe_graph = graph .locate_dependency (dependency .path )
64
- # missing graph problems have already been reported while building the graph
65
- if maybe_graph .graph :
66
- child_graph = maybe_graph .graph
67
- for child_dependency in child_graph .local_dependencies :
68
- yield from self ._iter_one (child_dependency , child_graph , root_path )
59
+ inherited_tree = graph .root .build_inherited_tree (root_path , dependency .path )
60
+ path_lookup = self ._path_lookup .change_directory (dependency .path .parent )
61
+ yield from self ._process_dependency (dependency , path_lookup , inherited_tree )
62
+ maybe_graph = graph .locate_dependency (dependency .path )
63
+ # missing graph problems have already been reported while building the graph
64
+ if maybe_graph .graph :
65
+ child_graph = maybe_graph .graph
66
+ for child_dependency in child_graph .local_dependencies :
67
+ yield from self ._iter_one (child_dependency , child_graph , root_path )
69
68
self ._lineage .pop ()
70
69
71
70
def _log_walk_one (self , dependency : Dependency ) -> None :
0 commit comments