INNER CODE UNIT · Python

collect_targets

wilsonfreitas/awesome-quant · scripts/audit_readme.py:243

def collect_targets(readme_path: str | Path) -> list[AuditTarget]:
    """Collect every entry URL in README source order with its entry context."""
    return [
        AuditTarget(entry, url, url == entry.url)
        for entry in iter_readme_entries(readme_path)
        for url in entry.external_urls
    ]


def _parse_github_repository_url(url: str) -> str | None:
    if "?" in url or "#" in url:
        return None
    try:
        parsed = urlsplit(url)
        port = parsed.port
    except ValueError:
        return None
    if (

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…