"""Liste les têtes de minifigs présentes dans chaque set filtré."""

from pathlib import Path

from lib.rebrickable.minifigs_by_set import build_minifigs_by_set


PARTS_FILTERED_PATH = Path("data/intermediate/parts_filtered.csv")
PARTS_CATALOG_PATH = Path("data/raw/parts.csv")
INVENTORIES_PATH = Path("data/raw/inventories.csv")
INVENTORY_PARTS_PATH = Path("data/raw/inventory_parts.csv")
INVENTORY_MINIFIGS_PATH = Path("data/raw/inventory_minifigs.csv")
MINIFIGS_PATH = Path("data/raw/minifigs.csv")
ALIASES_PATH = Path("config/known_character_aliases.csv")
GENDERS_PATH = Path("config/known_character_genders.csv")
DESTINATION_PATH = Path("data/intermediate/minifigs_by_set.csv")


def main() -> None:
    """Construit le CSV listant les têtes de minifigs par set."""
    build_minifigs_by_set(
        PARTS_FILTERED_PATH,
        PARTS_CATALOG_PATH,
        INVENTORIES_PATH,
        INVENTORY_PARTS_PATH,
        INVENTORY_MINIFIGS_PATH,
        MINIFIGS_PATH,
        ALIASES_PATH,
        GENDERS_PATH,
        DESTINATION_PATH,
    )


if __name__ == "__main__":
    main()
