config
Config module.
- wmflib.config.load_yaml_config(config_file: str | PathLike, *, raises: bool = True) Dict[source]
Parse a YAML config file and return it, optionally not failing on error.
- Parameters:
- Returns:
the parsed config or an empty dictionary as a fallback when
raisesisFalse.- Return type:
- Raises:
WmflibError – if unable to load the configuration and
raisesisTrue.