from typing import List
from pathlib import Path
import glob


def _gather_source_files(directory_path: str) -> List[Path]:
    """Returns a list of all python files in the tree starting from the provided directory_path

    Args:
        directory_path: the root directory of a python project.

    Returns:
        A list of python file paths.
    """
    return [Path(_) for _ in glob.glob(f"{directory_path}/**/*.py", recursive=True)]