chore: ruff format

This commit is contained in:
Chenglun Hu 2026-07-16 01:34:43 +08:00
parent 83281b3b6e
commit 07ef35a14d
2 changed files with 2 additions and 6 deletions

View file

@ -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(

View file

@ -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", "")