Skip to content

Commit 95a710d

Browse files
committed
chore: fix RUF059 violations
1 parent 5e2f492 commit 95a710d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

freqtrade/util/formatters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ def format_duration(td: timedelta) -> str:
7878
"""
7979
d = td.days
8080
h, r = divmod(td.seconds, 3600)
81-
m, s = divmod(r, 60)
81+
m, _ = divmod(r, 60)
8282
return f"{d}d {h:02d}:{m:02d}"

tests/optimize/test_backtesting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def test_get_pair_precision_bt(default_conf, mocker) -> None:
357357
pair = "UNITTEST/BTC"
358358
backtesting.pairlists._whitelist = [pair]
359359
ex_mock = mocker.patch(f"{EXMS}.get_precision_price", return_value=1e-5)
360-
data, timerange = backtesting.load_bt_data()
360+
data, _timerange = backtesting.load_bt_data()
361361
assert data
362362

363363
assert backtesting.get_pair_precision(pair, dt_utc(2018, 1, 1)) == (1e-8, TICK_SIZE)

tests/rpc/test_rpc_apiserver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ def test_api_reloadconf(botclient):
534534

535535

536536
def test_api_pause(botclient):
537-
ftbot, client = botclient
537+
_ftbot, client = botclient
538538

539539
rc = client_post(client, f"{BASE_URI}/pause")
540540
assert_response(rc)
@@ -3281,7 +3281,7 @@ def test_api_download_data(botclient, mocker, tmp_path):
32813281

32823282

32833283
def test_api_markets_live(botclient):
3284-
ftbot, client = botclient
3284+
_ftbot, client = botclient
32853285

32863286
rc = client_get(client, f"{BASE_URI}/markets")
32873287
assert_response(rc, 200)

tests/rpc/test_rpc_telegram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ async def test_telegram_profit_long_short_handle(
984984

985985
mocker.patch("freqtrade.rpc.rpc.CryptoToFiatConverter._find_price", return_value=1.1)
986986
mocker.patch.multiple(EXMS, fetch_ticker=ticker_usdt, get_fee=fee)
987-
telegram, freqtradebot, msg_mock = get_telegram_testobject(mocker, default_conf_usdt)
987+
telegram, _freqtradebot, msg_mock = get_telegram_testobject(mocker, default_conf_usdt)
988988

989989
# When there are no trades
990990
await telegram._profit_long(update=update, context=MagicMock())

0 commit comments

Comments
 (0)