flake8 fix

This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி 2022-03-30 18:43:24 +05:30
parent c1c20e4d8a
commit 0fb40ae015
5 changed files with 6 additions and 5 deletions

View File

@ -1325,7 +1325,7 @@ class FreqtradeBot(LoggingMixin):
self.rpc.send_msg(msg) self.rpc.send_msg(msg)
def _notify_exit_cancel(self, trade: Trade, order_type: str, reason: str, def _notify_exit_cancel(self, trade: Trade, order_type: str, reason: str,
sub_trade: bool = False, order: Order=None) -> None: sub_trade: bool = False, order: Order = None) -> None:
""" """
Sends rpc notification when a sell cancel occurred. Sends rpc notification when a sell cancel occurred.
""" """

View File

@ -249,7 +249,8 @@ class Wallets:
if min_stake_amount is not None and min_stake_amount > max_stake_amount: if min_stake_amount is not None and min_stake_amount > max_stake_amount:
if self._log: if self._log:
logger.warning(f"Minimum stake amount > available balance.{min_stake_amount} > {max_stake_amount}") logger.warning("Minimum stake amount > available balance."
f"{min_stake_amount} > {max_stake_amount}")
return 0 return 0
if min_stake_amount is not None and stake_amount < min_stake_amount: if min_stake_amount is not None and stake_amount < min_stake_amount:
if self._log: if self._log:

View File

@ -75,6 +75,7 @@ get_sell_rate_data = [
('ask', 0.006, 1.0, 11.0, None, 0.006), ('ask', 0.006, 1.0, 11.0, None, 0.006),
] ]
def ccxt_exceptionhandlers(mocker, default_conf, api_mock, exchange_name, def ccxt_exceptionhandlers(mocker, default_conf, api_mock, exchange_name,
fun, mock_ccxt_fun, retries=API_RETRY_COUNT + 1, **kwargs): fun, mock_ccxt_fun, retries=API_RETRY_COUNT + 1, **kwargs):
@ -1951,7 +1952,6 @@ def test_fetch_l2_order_book_exception(default_conf, mocker, exchange_name):
exchange.fetch_l2_order_book(pair='ETH/BTC', limit=50) exchange.fetch_l2_order_book(pair='ETH/BTC', limit=50)
@pytest.mark.parametrize("side,ask,bid,last,last_ab,expected", get_buy_rate_data) @pytest.mark.parametrize("side,ask,bid,last,last_ab,expected", get_buy_rate_data)
def test_get_buy_rate(mocker, default_conf, caplog, side, ask, bid, def test_get_buy_rate(mocker, default_conf, caplog, side, ask, bid,
last, last_ab, expected) -> None: last, last_ab, expected) -> None: