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

View File

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