scaffold.unrecorded_modules

scaffold.unrecorded_modules(spec)

The modules below the source directory that have no unit record yet.

These are the modules scaffold_unit accepts: every .py file and package of the architecture’s package, as a dotted name, minus the units that are already recorded.

Parameters

Name Type Description Default
spec RegenSpec The loaded spec. required

Returns

Name Type Description
list[str] list[str]: Dotted module names with the package prefix, sorted.

Examples

from pathlib import Path
from tempfile import TemporaryDirectory

from spotregen import load_spec, make_sample_repo, unrecorded_modules

with TemporaryDirectory() as tmp:
    spec = load_spec(make_sample_repo(Path(tmp) / "demo"))
    print(unrecorded_modules(spec))
['samplepkg', 'samplepkg.app', 'samplepkg.app.main', 'samplepkg.core']