hydra.build.modules module
Pure module-list utilities shared by the code-generation drivers.
- hydra.build.modules.dedup_preserving_order(xs: Sequence[T0]) Sequence[T0]
Deduplicate a list of strings, preserving first-occurrence order.
- hydra.build.modules.filter_kernel_modules(mods: Sequence[Module]) Sequence[Module]
Keep only modules outside the hydra.* and hydra.json.yaml.* namespaces.
- hydra.build.modules.filter_type_modules(mods: Sequence[Module]) Sequence[Module]
Keep only modules containing at least one type-defining binding.
- hydra.build.modules.second_level_dir(rel: str) object
The first two forward-slash-separated segments of a relative path, joined by /.