INNER CODE UNIT · Python

__init__

jacobdjwilson/awesome-annual-security-reports · .github/scripts/check-stale-conversions.py:34

    def __init__(self, artifacts_dir: str = ".github/artifacts") -> None:
        self.artifacts_dir = Path(artifacts_dir)
        self.models_path = self.artifacts_dir / "ai-models.json"
        self.wf_path = self.artifacts_dir / "workflow-config.json"

        if not self.models_path.exists():
            raise FileNotFoundError(f"Missing required artifact: {self.models_path}")
        if not self.wf_path.exists():
            raise FileNotFoundError(f"Missing required artifact: {self.wf_path}")

        try:
            with open(self.models_path, "r", encoding="utf-8") as f:
                self.models_data: Dict[str, Any] = json.load(f)
        except Exception as e:
            raise ValueError(f"Failed to parse {self.models_path}: {e}") from e

        try:
            with open(self.wf_path, "r", encoding="utf-8") as f:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…