mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 05:50:36 +00:00
10348 | run ruff formatter
This commit is contained in:
@@ -5,6 +5,7 @@ Provides dynamic pair list based on trade change
|
|||||||
sorted based on percentage change in volume over a
|
sorted based on percentage change in volume over a
|
||||||
defined period
|
defined period
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import Any, Dict, List, Literal
|
from typing import Any, Dict, List, Literal
|
||||||
@@ -118,8 +119,10 @@ class PercentVolumeChangePairList(IPairList):
|
|||||||
"""
|
"""
|
||||||
Short whitelist method description - used for startup-messages
|
Short whitelist method description - used for startup-messages
|
||||||
"""
|
"""
|
||||||
return (f"{self.name} - top {self._pairlistconfig['number_assets']} percent "
|
return (
|
||||||
f"volume change pairs.")
|
f"{self.name} - top {self._pairlistconfig['number_assets']} percent "
|
||||||
|
f"volume change pairs."
|
||||||
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def description() -> str:
|
def description() -> str:
|
||||||
|
|||||||
@@ -34,8 +34,9 @@ from tests.conftest import (
|
|||||||
# Exclude RemotePairList and PercentVolumeChangePairList from tests.
|
# Exclude RemotePairList and PercentVolumeChangePairList from tests.
|
||||||
# They have mandatory parameters, and requires special handling,
|
# They have mandatory parameters, and requires special handling,
|
||||||
# which happens in test_remotepairlist and test_percentvolumechangepairlist.
|
# which happens in test_remotepairlist and test_percentvolumechangepairlist.
|
||||||
TESTABLE_PAIRLISTS = [p for p in AVAILABLE_PAIRLISTS
|
TESTABLE_PAIRLISTS = [
|
||||||
if p not in ["RemotePairList", "PercentVolumeChangePairList"]]
|
p for p in AVAILABLE_PAIRLISTS if p not in ["RemotePairList", "PercentVolumeChangePairList"]
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="function")
|
@pytest.fixture(scope="function")
|
||||||
|
|||||||
Reference in New Issue
Block a user