Add necesary noqa statements

This commit is contained in:
Matthias 2023-02-22 07:20:10 +01:00
parent f8fa5bd969
commit 01d51aa979

View File

@ -1,13 +1,13 @@
import logging import logging
from typing import Dict from typing import Dict
import numpy as np import numpy as np # noqa
import pandas as pd import pandas as pd # noqa
import talib.abstract as ta import talib.abstract as ta
from pandas import DataFrame from pandas import DataFrame
from technical import qtpylib from technical import qtpylib
from freqtrade.strategy import IntParameter, IStrategy, merge_informative_pair from freqtrade.strategy import IntParameter, IStrategy, merge_informative_pair # noqa
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -224,12 +224,11 @@ class FreqaiExampleHybridStrategy(IStrategy):
usage example: dataframe["&-target"] = dataframe["close"].shift(-1) / dataframe["close"] usage example: dataframe["&-target"] = dataframe["close"].shift(-1) / dataframe["close"]
""" """
dataframe['&s-up_or_down'] = np.where(dataframe["close"].shift(-50) > dataframe['&s-up_or_down'] = np.where(dataframe["close"].shift(-50) >
dataframe["close"], 'up', 'down') dataframe["close"], 'up', 'down')
return dataframe return dataframe
# flake8: noqa: C901 def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # noqa: C901
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
# User creates their own custom strat here. Present example is a supertrend # User creates their own custom strat here. Present example is a supertrend
# based strategy. # based strategy.