Enhanced URL detection for zip artifacts.
(value: str)
| 494 | |
| 495 | |
| 496 | def _is_zip_web_url(value: str) -> bool: |
| 497 | """Enhanced URL detection for zip artifacts.""" |
| 498 | if not isinstance(value, str): |
| 499 | return False |
| 500 | |
| 501 | parsed = urllib.parse.urlparse(value) |
| 502 | # Direct zip URLs |
| 503 | if value.endswith(".zip"): |
| 504 | return parsed.scheme in ("http", "https") |
| 505 | return False |
| 506 | |
| 507 | |
| 508 | def validate_and_detect_manifest( |
no outgoing calls
no test coverage detected