mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
10348 | run ruff formatter
This commit is contained in:
parent
b09f9e8c12
commit
1b81de01b4
|
@ -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:
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user