Expand description
§mollify-graph
Discovers Python modules, assigns path-sorted stable FileIds (ADR-004
analog), builds the internal import graph, computes reachability from
entry points, and answers symbol-usage queries. Pure structure — the
mollify-core crate turns these into mollify_parse-backed findings.
Structs§
- FileId
- Stable, path-sorted module identifier.
- Module
Graph - The whole project graph.
- Module
Info - One module node in the graph.
- Unresolved
Import - An import that looks first-party/relative but resolves to no module.
Functions§
- discover_
python_ files - Walk
rootfor*.pyand*.ipynbfiles, honoring.gitignoreand pruning [DEFAULT_EXCLUDE_DIRS] (plus any virtualenv detected viapyvenv.cfg). Deterministic order. - discover_
python_ files_ excluding - Like
discover_python_files, but also prunesextra_excludesdirectory names (in addition to the builtin denylist) — used to honor a project’s.mollifyrc.jsonexclude_dirs. - read_
source - Read a module’s source. For
.ipynb, extract and concatenate code cells into one Python source (line numbers are relative to that concatenation — a documented v1 simplification). Jupyter magics/shell-escapes are skipped.