From 07ef35a14db5a8cf636a33fca20b950e9b523189 Mon Sep 17 00:00:00 2001 From: Chenglun Hu Date: Thu, 16 Jul 2026 01:34:43 +0800 Subject: [PATCH] chore: ruff format --- litellm/integrations/prometheus.py | 4 +--- .../integrations/test_prometheus_metrics_endpoint.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/litellm/integrations/prometheus.py b/litellm/integrations/prometheus.py index 8b780283a1c..14261837b93 100644 --- a/litellm/integrations/prometheus.py +++ b/litellm/integrations/prometheus.py @@ -3971,9 +3971,7 @@ class PrometheusLogger(CustomLogger): methods=["GET"], include_in_schema=False, ) - verbose_proxy_logger.debug( - "Starting Prometheus Metrics on /metrics (no authentication)" - ) + verbose_proxy_logger.debug("Starting Prometheus Metrics on /metrics (no authentication)") def _prometheus_labels_from_context( diff --git a/tests/test_litellm/integrations/test_prometheus_metrics_endpoint.py b/tests/test_litellm/integrations/test_prometheus_metrics_endpoint.py index 594250b5f4d..105d694657f 100644 --- a/tests/test_litellm/integrations/test_prometheus_metrics_endpoint.py +++ b/tests/test_litellm/integrations/test_prometheus_metrics_endpoint.py @@ -32,9 +32,7 @@ def test_metrics_endpoint_no_trailing_slash_no_redirect(monkeypatch): response = client.get("/metrics") - assert ( - response.status_code == 200 - ), f"bare /metrics must not 307 (got {response.status_code}); see #30079" + assert response.status_code == 200, f"bare /metrics must not 307 (got {response.status_code}); see #30079" assert "text/plain" in response.headers.get("content-type", "")