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.
scaffold_unit
.py
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']