from pathlib import Path


def get_metrics(dir_, name="metrics.txt"):
    """Returns set of metrics from file"""
    return {m.strip() for m in (Path(dir_) / name).read_text().splitlines() if len(m.strip()) > 0}