gui.model.run_check

gui.model.run_check(spec)

Run every check, as spotregen check does.

Parameters

Name Type Description Default
spec RegenSpec The loaded spec. required

Returns

Name Type Description
CheckResult CheckResult The findings with the time they took.

Examples

from pathlib import Path
from tempfile import TemporaryDirectory

from spotregen import load_spec, make_sample_repo
from spotregen.gui.model import run_check

with TemporaryDirectory() as tmp:
    spec = load_spec(make_sample_repo(Path(tmp) / "demo"))
    print(run_check(spec).summary(spec))
regen check: 1 units, 0 errors, 0 warnings