10348 | run ruff formatter

This commit is contained in:
jainanuj94
2024-07-25 00:04:06 +05:30
parent b09f9e8c12
commit 1b81de01b4
2 changed files with 8 additions and 4 deletions

View File

@@ -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:

View File

@@ -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")