diff --git a/.gitguardian.yaml b/.gitguardian.yaml index 1eeec0677af..2a16ffe0c52 100644 --- a/.gitguardian.yaml +++ b/.gitguardian.yaml @@ -37,7 +37,7 @@ secret: - "docs/**" - "**/*.md" - "**/*.lock" - - "poetry.lock" + - "uv.lock" - "package-lock.json" # Ignore security incidents with the SHA256 of the occurrence (false positives) diff --git a/scripts/health_check/health_check_client.py b/scripts/health_check/health_check_client.py index 873727b4535..ecda12e1d95 100644 --- a/scripts/health_check/health_check_client.py +++ b/scripts/health_check/health_check_client.py @@ -1,4 +1,12 @@ #!/usr/bin/env python3 +# /// script +# requires-python = ">=3.9" +# dependencies = [ +# "httpx==0.28.1", +# "pyyaml==6.0.2", +# ] +# /// + """ LiteLLM Health Check Client diff --git a/tests/basic_proxy_startup_tests/test_basic_proxy_startup.py b/tests/basic_proxy_startup_tests/test_basic_proxy_startup.py index 218fbae71db..d2d789fb0c7 100644 --- a/tests/basic_proxy_startup_tests/test_basic_proxy_startup.py +++ b/tests/basic_proxy_startup_tests/test_basic_proxy_startup.py @@ -24,7 +24,7 @@ async def test_health_and_chat_completion(): assert response.status == 200 readiness_response = await response.json() # Accept both "healthy" (new format) and "connected" (legacy format) - # since this test runs against both source builds and pip-installed versions + # since this test runs against both source builds and packaged installs assert readiness_response["status"] in ("healthy", "connected") # Test liveness endpoint diff --git a/tests/llm_translation/realtime/test_realtime_guardrails_openai.py b/tests/llm_translation/realtime/test_realtime_guardrails_openai.py index e580fea02a5..1632562e3c0 100644 --- a/tests/llm_translation/realtime/test_realtime_guardrails_openai.py +++ b/tests/llm_translation/realtime/test_realtime_guardrails_openai.py @@ -9,7 +9,7 @@ They verify end-to-end that: 3. A clean text message passes through and triggers a real OpenAI response. Run with: - poetry run pytest tests/llm_translation/realtime/test_realtime_guardrails_openai.py -v -s + uv run pytest tests/llm_translation/realtime/test_realtime_guardrails_openai.py -v -s """ import asyncio diff --git a/tests/local_testing/test_docker_no_network_on_deploy.py b/tests/local_testing/test_docker_no_network_on_deploy.py index e8681d59699..6d2a64a059f 100644 --- a/tests/local_testing/test_docker_no_network_on_deploy.py +++ b/tests/local_testing/test_docker_no_network_on_deploy.py @@ -350,7 +350,7 @@ def test_container_build_no_network_fetch(): This verifies that all dependencies are properly bundled and no runtime network calls are made during container initialization. - Note: Build itself may need network for pip install, but runtime should not. + Note: Build itself may need network to resolve dependencies, but runtime should not. """ # This is a simplified version - full test would need to: # 1. Build image with --network=none (requires pre-cached deps) diff --git a/tests/mcp_tests/test_semantic_tool_filter_e2e.py b/tests/mcp_tests/test_semantic_tool_filter_e2e.py index 0cb7f221a22..b7d9e4a0784 100644 --- a/tests/mcp_tests/test_semantic_tool_filter_e2e.py +++ b/tests/mcp_tests/test_semantic_tool_filter_e2e.py @@ -23,7 +23,7 @@ except ImportError: @pytest.mark.asyncio @pytest.mark.skipif( not SEMANTIC_ROUTER_AVAILABLE, - reason="semantic-router not installed. Install with: pip install 'litellm[semantic-router]'" + reason="semantic-router not installed. Install the `litellm[semantic-router]` extra." ) @pytest.mark.skipif( not os.environ.get("OPENAI_API_KEY"), diff --git a/tests/test_litellm/integrations/test_prometheus_cache_metrics.py b/tests/test_litellm/integrations/test_prometheus_cache_metrics.py index 660757673f6..ac694634fdf 100644 --- a/tests/test_litellm/integrations/test_prometheus_cache_metrics.py +++ b/tests/test_litellm/integrations/test_prometheus_cache_metrics.py @@ -1,7 +1,7 @@ """ Unit tests for cache Prometheus metrics. -Run with: poetry run pytest tests/test_litellm/integrations/test_prometheus_cache_metrics.py -v +Run with: uv run pytest tests/test_litellm/integrations/test_prometheus_cache_metrics.py -v """ import pytest from unittest.mock import MagicMock, patch diff --git a/tests/test_litellm/proxy/db/test_rds_iam_token_expiry.py b/tests/test_litellm/proxy/db/test_rds_iam_token_expiry.py index 1492acb0794..f320e7a2854 100644 --- a/tests/test_litellm/proxy/db/test_rds_iam_token_expiry.py +++ b/tests/test_litellm/proxy/db/test_rds_iam_token_expiry.py @@ -10,7 +10,7 @@ The fix implements: 4. Fixed __getattr__ fallback that now waits for reconnection Run these tests: - poetry run pytest tests/test_litellm/proxy/db/test_rds_iam_token_expiry.py -v -s + uv run pytest tests/test_litellm/proxy/db/test_rds_iam_token_expiry.py -v -s """ import asyncio