from pathlib import Path


def file_should_be_formatted(file: Path) -> bool:
    """Return true if the given file should be formatted"""
    file_str = str(file)
    return (
        "benchmarks" not in file_str
        and "third-party" not in file_str
        and "ext/config" not in file_str
        and "ext/Include" not in file_str
        and "library/importlib" not in file_str
    )