Skip to content

Commit afcf5f4

Browse files
committed
Fixed all errors found by new Ruff version
Signed-off-by: Pavel Tisnovsky <[email protected]>
1 parent 99852a7 commit afcf5f4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ols/app/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ async def log_requests_responses(
7575
) -> Response:
7676
"""Middleware for logging of HTTP requests and responses, at debug level."""
7777
# Bail out early if not logging or Prometheus metrics logging is suppressed
78-
if (
79-
not logger.isEnabledFor(logging.DEBUG)
80-
or config.ols_config.logging_config.suppress_metrics_in_log
78+
if not logger.isEnabledFor(logging.DEBUG) or (
79+
config.ols_config.logging_config.suppress_metrics_in_log
8180
and request.url.path == "/metrics"
8281
):
8382
return await call_next(request)

ols/src/cache/redis_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from redis.backoff import ExponentialBackoff
99
from redis.exceptions import (
1010
BusyLoadingError,
11-
ConnectionError,
11+
ConnectionError, # noqa: A004
1212
RedisError,
1313
)
1414
from redis.retry import Retry

0 commit comments

Comments
 (0)