chore(cli): add ruff rules D1 (#32350)

Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
Christophe Bornet
2025-08-12 00:25:30 +02:00
committed by GitHub
parent 8b663ed6c6
commit 46bbd52e81
20 changed files with 67 additions and 13 deletions

View File

@@ -1,9 +1,12 @@
"""GitHub utilities."""
import http.client
import json
from typing import Optional
def list_packages(*, contains: Optional[str] = None) -> list[str]:
"""List all packages in the langchain repository templates directory."""
conn = http.client.HTTPSConnection("api.github.com")
try:
headers = {