Examples
How to run importscope on real repos
These guides are intentionally not the same analysis repeated on different
projects. They show a few different but coherent ways to use importscope once
you leave the small demo repo:
- whole-package structural view
- focused slice inside one package
- one subpackage extracted from a very large repo
- top-level package analysis with a starter config for grouping and policy
These pages are examples of usage, not claims that the repositories below have bad architecture or poor design choices.
Each guide now shows the setup as importscope init plus a handful of
importscope config ... commands, so the checked-in example config files match
the documented command workflow exactly.
Pick the guide by analysis style
- Run
importscopeonscverse/anndataWhole-package view with one policy rule to highlight a cycle-relevant back-edge. - Run
importscopeonsaezlab/annnetFocused cross-layer slice created by excluding unrelated areas. - Run
importscopeonnetworkx/networkxSubpackage-only analysis inside a much larger repository. - Run
importscopeonsaezlab/cornetoSmall slice showing how the public package fans into graph, methods, and backends. - Run
importscopeonsaezlab/omnipathSmall slice showing howomnipath.requestsreaches the internal request engine.
What stays consistent across all guides
Across all of them, the workflow is the same:
- choose the package or slice that answers one architectural question
- run a structural pass first
- add grouping and policy only when it improves readability or review value
- save JSON when you want follow-up
inspectqueries