roots (Iterable[str | Path]) – project directories, e.g. git_roots_under(parent).
diagnose_root (Callable[[Path], DiagnosisReport]) – Path -> DiagnosisReport; defaults to diagnose(scan(root)).
check_dirs (bool) – record a root that is not a directory as an error.