From 01d51aa979d0755cb9878bbd1db14a004a3dbb8e Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 22 Feb 2023 07:20:10 +0100 Subject: [PATCH] Add necesary noqa statements --- freqtrade/templates/FreqaiExampleHybridStrategy.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/freqtrade/templates/FreqaiExampleHybridStrategy.py b/freqtrade/templates/FreqaiExampleHybridStrategy.py index ee574fda3..8a99dabc1 100644 --- a/freqtrade/templates/FreqaiExampleHybridStrategy.py +++ b/freqtrade/templates/FreqaiExampleHybridStrategy.py @@ -1,13 +1,13 @@ import logging from typing import Dict -import numpy as np -import pandas as pd +import numpy as np # noqa +import pandas as pd # noqa import talib.abstract as ta from pandas import DataFrame 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__) @@ -224,12 +224,11 @@ class FreqaiExampleHybridStrategy(IStrategy): usage example: dataframe["&-target"] = dataframe["close"].shift(-1) / dataframe["close"] """ dataframe['&s-up_or_down'] = np.where(dataframe["close"].shift(-50) > - dataframe["close"], 'up', 'down') + dataframe["close"], 'up', 'down') return dataframe - # flake8: noqa: C901 - def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: + def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # noqa: C901 # User creates their own custom strat here. Present example is a supertrend # based strategy.