mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-04 07:27:51 +00:00
chore(ci): temporarily log NVIDIA rerank basedpyright diagnostic location
This commit is contained in:
parent
46472fcd99
commit
8f991d41cc
1 changed files with 11 additions and 0 deletions
|
|
@ -118,6 +118,17 @@ def count_basedpyright(payload: str, root: Path = REPO_ROOT) -> dict[str, int]:
|
|||
f"{payload[:500]}\n"
|
||||
)
|
||||
raise SystemExit(1) from exc
|
||||
# TEMPORARY PR #47306 diagnostics (remove after identifying the location).
|
||||
for diag in data.get("generalDiagnostics", []):
|
||||
if diag.get("rule") == "reportUnknownVariableType" and "nvidia_nim" in str(diag.get("file", "")):
|
||||
sys.stderr.write(
|
||||
"PR47306 basedpyright diagnostic: "
|
||||
+ json.dumps(
|
||||
{"file": diag.get("file"), "range": diag.get("range"), "message": diag.get("message")},
|
||||
ensure_ascii=False,
|
||||
)
|
||||
+ "\\n"
|
||||
)
|
||||
counts: Counter[str] = Counter()
|
||||
for diag in data.get("generalDiagnostics", []):
|
||||
if diag.get("severity") != "error":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue