MMMYamlConfig.from_yaml_file#

classmethod MMMYamlConfig.from_yaml_file(path)[source]#

Load and validate a YAML configuration file.

Parameters:
pathstr or Path

Path to the YAML configuration file.

Returns:
MMMYamlConfig

Validated configuration object.

Raises:
pydantic.ValidationError

If the YAML structure is invalid.

FileNotFoundError

If path does not exist.

yaml.YAMLError

If the file is not valid YAML.