from pathlib import Path


def fixture_readme_content(repo_dir: Path) -> str:
    """Get the README.md contents.

    :param repo_dir: the path to the repository
    :return: plain text content of README.md
    """
    path_to_readme = repo_dir / "README.md"
    assert path_to_readme.exists()
    return path_to_readme.read_text()