From d295b76655d535edf77b5dbcc863c019026ca792 Mon Sep 17 00:00:00 2001 From: Mateo Wang <277851410+mateo-berri@users.noreply.github.com> Date: Mon, 29 Jun 2026 20:25:22 -0700 Subject: [PATCH] ci(linting): generate prisma client before basedpyright typecheck (#31673) Co-authored-by: Cursor Agent Co-authored-by: Mateo Wang --- .github/workflows/test-linting.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-linting.yml b/.github/workflows/test-linting.yml index f093caef073..6deb28c95c7 100644 --- a/.github/workflows/test-linting.yml +++ b/.github/workflows/test-linting.yml @@ -48,7 +48,16 @@ jobs: - name: Install dependencies run: | - uv sync --frozen + uv sync --frozen --group proxy-dev + + # basedpyright resolves Prisma's generated client (litellm/proxy/schema.prisma) + # only after `prisma generate` writes prisma/client.py et al. Without this the + # DB wrappers typed against the generated client would degrade to Unknown. + - name: Generate Prisma client + env: + PRISMA_BINARY_CACHE_DIR: ${{ runner.temp }}/prisma-cache + run: | + uv run --no-sync prisma generate --schema litellm/proxy/schema.prisma - name: Check ruff format env: