def load_and_merge_config() -> Dict[str, Any]:
    """Load configuration from files, merge with environment variables and set defaults for options not set."""
    config = load_config()

    ramalama_config = config.setdefault('ramalama', {})

    env_config = {}
    load_config_from_env(env_config, os.environ)

    default_config = {}
    load_config_defaults(default_config)

    return Config(env_config, ramalama_config, default_config)
Load configuration from files, merge with environment variables and set defaults for options not set.
ramalama/config.py