Documentation
¶
Overview ¶
Package python is the Python implementation of the affected-selection language seam.
A unit is one module — one .py file — because that is Python's compilation and import unit. Import edges are read from source text; no interpreter is started and nothing is imported, so the graph can be rebuilt on a dirty worktree with no virtual environment present.
Index ¶
Constants ¶
View Source
const ( // FrontierDynamicImport reports importlib or __import__ usage, whose target // is not visible in source text. FrontierDynamicImport = "python:dynamic-import" // FrontierRelativeImport reports a relative import that resolved to no // observed module. FrontierRelativeImport = "python:relative-import-unresolved" // FrontierUnreadableSource reports a file that could not be read or decoded. FrontierUnreadableSource = "python:unreadable-source" // FrontierConditionalImport reports an import nested inside a block, whose // execution is conditional. The edge is kept; the condition is the frontier. FrontierConditionalImport = "python:conditional-import" )
Frontier reasons this plugin can raise.
Variables ¶
View Source
var SourceRoots = []string{"src", "lib", "python"}
SourceRoots are the directory prefixes stripped when deriving a dotted module name, in addition to the repository root itself. They cover the layouts a Python project uses to put importable modules somewhere other than the root.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.