hydra.build.reconcile module
The pure orphan-reconcile decision: which generated files to delete.
- hydra.build.reconcile.extension_of(path: str) object
The extension of a relative path, or none if the filename has no ‘.’.
- hydra.build.reconcile.is_under_any_prefix(prefixes: Set[str], path: str) bool
Whether a relative path lies under at least one prefix, matched segment-wise.
- hydra.build.reconcile.keep_paths_for_modules(mods: Sequence[ModuleName]) Set[str]
The keep-set of relative JSON paths (moduleNameToPath(ns) ++ .json) for written modules.
- hydra.build.reconcile.matches_exts(restrict_exts: object, path: str) bool
Whether a path’s extension satisfies the optional extension restriction.
- hydra.build.reconcile.matches_prefixes(restrict_prefixes: object, path: str) bool
Whether a path satisfies the optional prefix restriction.
- hydra.build.reconcile.owned_prefixes(mods: Sequence[ModuleName]) Set[str]
The owned second-level prefixes (e.g. hydra/java) derived from written module names.
- hydra.build.reconcile.reconcile_plan(keep_set: Set[str], protect_set: Set[str], restrict_exts: object, restrict_prefixes: object, observed: Sequence[str]) Sequence[str]
The pure orphan-reconcile plan: which observed paths to delete.
- hydra.build.reconcile.second_level_dir(path: str) object
The second-level directory of a ‘/’-separated path (e.g. hydra/java/coder -> hydra/java), or none.