def analyze_package(package_path: str) -> tuple[str, float]:
    """Analyze a single package. Helper function for parallel processing."""
    package_name = package_path.strip().lstrip("./").rstrip("/").split("/")[-1]
    logger.info(f"starting to analyze {package_name}")
    analyzer = IntegrationActivityAnalyzer(package_name, package_path)
    analyzer.calculate_metrics()
    health_score = analyzer.health_score
    if health_score == 42:
        print(f"new package: {package_name}")
    logger.info(f"health score for {package_name}: {health_score}")
    return (package_name, health_score)
Analyze a single package. Helper function for parallel processing.
scripts/integration_health_check.py