use function level noqa ignore

This commit is contained in:
robcaulk 2023-02-10 15:26:17 +01:00
parent 4fc0edb8b7
commit 154b6711b3
2 changed files with 1 additions and 3 deletions

View File

@ -348,7 +348,7 @@ class BaseReinforcementLearningModel(IFreqaiModel):
sets a custom reward based on profit and trade duration.
"""
def calculate_reward(self, action: int) -> float:
def calculate_reward(self, action: int) -> float: # noqa: C901
"""
An example reward function. This is the one function that users will likely
wish to inject their own creativity into.

View File

@ -49,5 +49,3 @@ exclude =
__pycache__,
.eggs,
user_data,
per-file-ignores =
freqtrade/freqai/RL/BaseReinforcementLearningModel.py:C901