checks.summary_line(spec, findings)
The last line of spotregen check: units, errors and warnings.
Parameters
| spec |
RegenSpec |
The loaded spec. |
required |
| findings |
list[Finding] |
The findings of run_checks. |
required |
Returns
| str |
str |
regen check: N units, E errors, W warnings. |
Examples
from pathlib import Path
from tempfile import TemporaryDirectory
from spotregen import load_spec, make_sample_repo, run_checks
from spotregen.checks import summary_line
with TemporaryDirectory() as tmp:
spec = load_spec(make_sample_repo(Path(tmp) / "demo"))
print(summary_line(spec, run_checks(spec)))
regen check: 1 units, 0 errors, 0 warnings