from pathlib import Path


def gf_repo(path):
    """Check if path is a Google Fonts repo"""
    path = Path(path)
    if not path.is_dir() or list(path.glob("to_production`.txt")):
        raise OSError(f"{path} is not a Google/Fonts dir")
    return path