Return a ``Config`` instance by reading a configuration file.

def from_file(path):
        """Return a ``Config`` instance by reading a configuration file."""
        with open(path) as stream:
            obj = yaml.safe_load(stream)
        Config.lint(obj)
        return Config(config_dict=obj)