Further bandid noqa's
This commit is contained in:
@@ -13,7 +13,7 @@ def get_strategy_run_id(strategy) -> str:
|
|||||||
:param strategy: strategy object.
|
:param strategy: strategy object.
|
||||||
:return: hex string id.
|
:return: hex string id.
|
||||||
"""
|
"""
|
||||||
digest = hashlib.sha1()
|
digest = hashlib.sha1() # noqa: S324
|
||||||
config = deepcopy(strategy.config)
|
config = deepcopy(strategy.config)
|
||||||
|
|
||||||
# Options that have no impact on results of individual backtest.
|
# Options that have no impact on results of individual backtest.
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class ShuffleFilter(IPairList):
|
|||||||
self._seed = pairlistconfig.get("seed")
|
self._seed = pairlistconfig.get("seed")
|
||||||
logger.info(f"Backtesting mode detected, applying seed value: {self._seed}")
|
logger.info(f"Backtesting mode detected, applying seed value: {self._seed}")
|
||||||
|
|
||||||
self._random = random.Random(self._seed)
|
self._random = random.Random(self._seed) # noqa: S311
|
||||||
self._shuffle_freq: ShuffleValues = pairlistconfig.get("shuffle_frequency", "candle")
|
self._shuffle_freq: ShuffleValues = pairlistconfig.get("shuffle_frequency", "candle")
|
||||||
self.__pairlist_cache = PeriodicCache(
|
self.__pairlist_cache = PeriodicCache(
|
||||||
maxsize=1000, ttl=timeframe_to_seconds(self._config["timeframe"])
|
maxsize=1000, ttl=timeframe_to_seconds(self._config["timeframe"])
|
||||||
|
|||||||
Reference in New Issue
Block a user