Enable flake8 E226 rule
This commit is contained in:
parent
1084787a38
commit
baefda80d1
@ -419,7 +419,8 @@ class Telegram(RPCHandler):
|
|||||||
if prev_avg_price:
|
if prev_avg_price:
|
||||||
minus_on_entry = (cur_entry_average - prev_avg_price) / prev_avg_price
|
minus_on_entry = (cur_entry_average - prev_avg_price) / prev_avg_price
|
||||||
|
|
||||||
dur_entry = cur_entry_datetime - arrow.get(filled_orders[x-1]["order_filled_date"])
|
dur_entry = cur_entry_datetime - arrow.get(
|
||||||
|
filled_orders[x - 1]["order_filled_date"])
|
||||||
days = dur_entry.days
|
days = dur_entry.days
|
||||||
hours, remainder = divmod(dur_entry.seconds, 3600)
|
hours, remainder = divmod(dur_entry.seconds, 3600)
|
||||||
minutes, seconds = divmod(remainder, 60)
|
minutes, seconds = divmod(remainder, 60)
|
||||||
|
@ -39,7 +39,9 @@ console_scripts =
|
|||||||
freqtrade = freqtrade.main:main
|
freqtrade = freqtrade.main:main
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
#ignore =
|
# Default from https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore
|
||||||
|
# minus E226
|
||||||
|
ignore = E121,E123,E126,E24,E704,W503,W504
|
||||||
max-line-length = 100
|
max-line-length = 100
|
||||||
max-complexity = 12
|
max-complexity = 12
|
||||||
exclude =
|
exclude =
|
||||||
|
@ -2691,7 +2691,8 @@ async def test__async_get_trade_history_time(default_conf, mocker, caplog, excha
|
|||||||
# Monkey-patch async function
|
# Monkey-patch async function
|
||||||
exchange._api_async.fetch_trades = MagicMock(side_effect=mock_get_trade_hist)
|
exchange._api_async.fetch_trades = MagicMock(side_effect=mock_get_trade_hist)
|
||||||
pair = 'ETH/BTC'
|
pair = 'ETH/BTC'
|
||||||
ret = await exchange._async_get_trade_history_time(pair,
|
ret = await exchange._async_get_trade_history_time(
|
||||||
|
pair,
|
||||||
since=fetch_trades_result[0]['timestamp'],
|
since=fetch_trades_result[0]['timestamp'],
|
||||||
until=fetch_trades_result[-1]['timestamp'] - 1)
|
until=fetch_trades_result[-1]['timestamp'] - 1)
|
||||||
assert type(ret) is tuple
|
assert type(ret) is tuple
|
||||||
|
Loading…
Reference in New Issue
Block a user