from __future__ import annotations

import logging

from scripts.initial_data import load_config, seed_initial_data


def main() -> int:
    logging.basicConfig(level=logging.INFO, format="[%(levelname)s] %(message)s")
    try:
        config = load_config()
        seed_initial_data(config)
    except Exception as exc:  # pragma: no cover - operational guard
        logging.exception("Seeding failed: %s", exc)
        return 1
    return 0


if __name__ == "__main__":
    raise SystemExit(main())
