def _to_fs_paths(metrics: List[Output]) -> StrPaths: result = [] for out in metrics: if out.metric: result.append(out.repo.dvcfs.from_os_path(out.fs_path)) elif out.live: fs_path = summary_fs_path(out) if fs_path: result.append(out.repo.dvcfs.from_os_path(fs_path)) return result
def _get_stage_files(stage: "Stage") -> typing.Iterator[str]: yield stage.dvcfile.relpath for dep in stage.deps: if (not dep.use_scm_ignore and dep.is_in_repo and not stage.repo.repo_fs.isdvc(dep.fs_path)): yield dep.fs_path for out in stage.outs: if not out.use_scm_ignore and out.is_in_repo: yield out.fs_path if out.live: from dvc.repo.live import summary_fs_path summary = summary_fs_path(out) if summary: yield summary