From 80d2dc0cb2b999cbf571e5d0cf3857ae424c1b91 Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Sat, 28 Feb 2026 19:43:40 +0100 Subject: [PATCH] fix(backend): clear VIRTUAL_ENV before invoking pyright Prevents a spurious warning when the shell's VIRTUAL_ENV points to a different project's venv. Pyright detects the mismatch and warns; clearing the variable inline forces pyright to resolve the venv from pyrightconfig.json. --- backend/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/Makefile b/backend/Makefile index 7418132..33b560c 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -1,5 +1,8 @@ .PHONY: help lint lint-fix format format-check type-check test test-cov validate clean install-dev sync check-docker install-e2e test-e2e test-e2e-schema test-all +# Prevent a stale VIRTUAL_ENV in the caller's shell from confusing uv +unexport VIRTUAL_ENV + # Default target help: @echo "🚀 FastAPI Backend - Development Commands"