from pathlib import Path
from typing import List
import re


def tags_in_file(path: Path) -> List[str]:
    """Return all tags in a file."""
    matches = re.findall(r'@([a-zA-Z1-9\-]+)', path.read_text())
    return matches