MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / module_to_file_map

Function module_to_file_map

tools/find_import_cycles.py:17–22  ·  view source on GitHub ↗
(root: Path)

Source from the content-addressed store, hash-verified

15
16
17def module_to_file_map(root: Path) -> dict[str, Path]:
18 mapping = {}
19 for file in root.rglob("*.py"):
20 mod = path_to_module(root, file)
21 mapping[mod] = file
22 return mapping
23
24
25def resolve_relative_import(current_module: str, module: str | None, level: int) -> str | None:

Callers 1

internal_edgesFunction · 0.85

Calls 1

path_to_moduleFunction · 0.85

Tested by

no test coverage detected