import yaml


def get_config(config_path):
    """Retrieve configuration data.

    Args:
        config_path (pathlib.Path): Path to configuration file

    Returns:
        dict: Configuration data
    """

    with config_path.open() as config_file:
        config = yaml.safe_load(config_file)
    return config