From 225ef6b8caa82f0c3e4c486254798e35ba204d60 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 11 Mar 2024 17:50:47 +0100 Subject: [PATCH] Update to latest ruff format --- freqtrade/optimize/space/decimalspace.py | 6 ++++-- freqtrade/rpc/fiat_convert.py | 5 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/freqtrade/optimize/space/decimalspace.py b/freqtrade/optimize/space/decimalspace.py index 220502e69..61aad0597 100644 --- a/freqtrade/optimize/space/decimalspace.py +++ b/freqtrade/optimize/space/decimalspace.py @@ -20,8 +20,10 @@ class SKDecimal(Integer): super().__init__(_low, _high, prior, base, transform, name, dtype) def __repr__(self): - return "Decimal(low={}, high={}, decimals={}, prior='{}', transform='{}')".format( - self.low_orig, self.high_orig, self.decimals, self.prior, self.transform_) + return ( + f"Decimal(low={self.low_orig}, high={self.high_orig}, decimals={self.decimals}, " + f"prior='{self.prior}', transform='{self.transform_}')" + ) def __contains__(self, point): if isinstance(point, list): diff --git a/freqtrade/rpc/fiat_convert.py b/freqtrade/rpc/fiat_convert.py index 2453f4f25..d01596cfc 100644 --- a/freqtrade/rpc/fiat_convert.py +++ b/freqtrade/rpc/fiat_convert.py @@ -77,9 +77,8 @@ class CryptoToFiatConverter(LoggingMixin): return # If the request is not a 429 error we want to raise the normal error logger.error( - "Could not load FIAT Cryptocurrency map for the following problem: {}".format( - request_exception - ) + "Could not load FIAT Cryptocurrency map for the following problem: " + f"{request_exception}" ) except (Exception) as exception: logger.error(