diff --git a/freqtrade/plugins/pairlist/PercentVolumeChangePairList.py b/freqtrade/plugins/pairlist/PercentVolumeChangePairList.py index 0aee37959..777acda60 100644 --- a/freqtrade/plugins/pairlist/PercentVolumeChangePairList.py +++ b/freqtrade/plugins/pairlist/PercentVolumeChangePairList.py @@ -5,6 +5,7 @@ Provides dynamic pair list based on trade change sorted based on percentage change in volume over a defined period """ + import logging from datetime import timedelta from typing import Any, Dict, List, Literal @@ -118,8 +119,10 @@ class PercentVolumeChangePairList(IPairList): """ Short whitelist method description - used for startup-messages """ - return (f"{self.name} - top {self._pairlistconfig['number_assets']} percent " - f"volume change pairs.") + return ( + f"{self.name} - top {self._pairlistconfig['number_assets']} percent " + f"volume change pairs." + ) @staticmethod def description() -> str: diff --git a/tests/plugins/test_pairlist.py b/tests/plugins/test_pairlist.py index e5a19ea74..7e5fd4c12 100644 --- a/tests/plugins/test_pairlist.py +++ b/tests/plugins/test_pairlist.py @@ -34,8 +34,9 @@ from tests.conftest import ( # Exclude RemotePairList and PercentVolumeChangePairList from tests. # They have mandatory parameters, and requires special handling, # which happens in test_remotepairlist and test_percentvolumechangepairlist. -TESTABLE_PAIRLISTS = [p for p in AVAILABLE_PAIRLISTS - if p not in ["RemotePairList", "PercentVolumeChangePairList"]] +TESTABLE_PAIRLISTS = [ + p for p in AVAILABLE_PAIRLISTS if p not in ["RemotePairList", "PercentVolumeChangePairList"] +] @pytest.fixture(scope="function")