mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
Fix some linting errors (#1763)
Co-authored-by: Alex Ferrari <a.ferrari88@gmail.com>
This commit is contained in:
@@ -230,7 +230,9 @@ def display_token_info(
|
||||
|
||||
df = ethplorer_model.get_token_info(address)
|
||||
df_data = df.copy()
|
||||
df["Value"] = df["Value"].apply(lambda x: lambda_very_long_number_formatter(x))
|
||||
df.loc[:, "Value"] = df["Value"].apply(
|
||||
lambda x: lambda_very_long_number_formatter(x)
|
||||
)
|
||||
|
||||
socials = ["website", "telegram", "reddit", "twitter", "coingecko"]
|
||||
if social:
|
||||
@@ -319,7 +321,9 @@ def display_token_history(
|
||||
console.print(f"No results found for balance: {address}\n")
|
||||
return
|
||||
|
||||
df["value"] = df["value"].apply(lambda x: lambda_very_long_number_formatter(x))
|
||||
df.loc[:, "value"] = df["value"].apply(
|
||||
lambda x: lambda_very_long_number_formatter(x)
|
||||
)
|
||||
df = df.sort_values(by=sortby, ascending=descend)
|
||||
|
||||
if hash_:
|
||||
@@ -378,7 +382,7 @@ def display_token_historical_prices(
|
||||
df["volumeConverted"] = df["volumeConverted"].apply(
|
||||
lambda x: lambda_very_long_number_formatter(x)
|
||||
)
|
||||
df["cap"] = df["cap"].apply(lambda x: lambda_very_long_number_formatter(x))
|
||||
df.loc[:, "cap"] = df["cap"].apply(lambda x: lambda_very_long_number_formatter(x))
|
||||
df = df.sort_values(by=sortby, ascending=descend)
|
||||
|
||||
print_rich_table(
|
||||
|
||||
@@ -538,7 +538,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
|
||||
def check_walert_key(self, show_output: bool = False) -> None:
|
||||
"""Check Walert key"""
|
||||
self.cfg_dict["WHALE_ALERT"] = "wa"
|
||||
if "REPLACE_ME" == cfg.API_WHALE_ALERT_KEY:
|
||||
if cfg.API_WHALE_ALERT_KEY == "REPLACE_ME":
|
||||
logger.info("Walert key not defined")
|
||||
self.key_dict["WHALE_ALERT"] = "not defined"
|
||||
else:
|
||||
@@ -564,7 +564,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
|
||||
def check_glassnode_key(self, show_output: bool = False) -> None:
|
||||
"""Check glassnode key"""
|
||||
self.cfg_dict["GLASSNODE"] = "glassnode"
|
||||
if "REPLACE_ME" == cfg.API_GLASSNODE_KEY:
|
||||
if cfg.API_GLASSNODE_KEY == "REPLACE_ME":
|
||||
logger.info("Glassnode key not defined")
|
||||
self.key_dict["GLASSNODE"] = "not defined"
|
||||
else:
|
||||
@@ -592,7 +592,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
|
||||
def check_coinglass_key(self, show_output: bool = False) -> None:
|
||||
"""Check coinglass key"""
|
||||
self.cfg_dict["COINGLASS"] = "coinglass"
|
||||
if "REPLACE_ME" == cfg.API_COINGLASS_KEY:
|
||||
if cfg.API_COINGLASS_KEY == "REPLACE_ME":
|
||||
logger.info("Coinglass key not defined")
|
||||
self.key_dict["COINGLASS"] = "not defined"
|
||||
else:
|
||||
@@ -615,7 +615,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
|
||||
def check_cpanic_key(self, show_output: bool = False) -> None:
|
||||
"""Check cpanic key"""
|
||||
self.cfg_dict["CRYPTO_PANIC"] = "cpanic"
|
||||
if "REPLACE_ME" == cfg.API_CRYPTO_PANIC_KEY:
|
||||
if cfg.API_CRYPTO_PANIC_KEY == "REPLACE_ME":
|
||||
logger.info("cpanic key not defined")
|
||||
self.key_dict["CRYPTO_PANIC"] = "not defined"
|
||||
else:
|
||||
@@ -638,7 +638,7 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods
|
||||
def check_ethplorer_key(self, show_output: bool = False) -> None:
|
||||
"""Check ethplorer key"""
|
||||
self.cfg_dict["ETHPLORER"] = "ethplorer"
|
||||
if "REPLACE_ME" == cfg.API_ETHPLORER_KEY:
|
||||
if cfg.API_ETHPLORER_KEY == "REPLACE_ME":
|
||||
logger.info("ethplorer key not defined")
|
||||
self.key_dict["ETHPLORER"] = "not defined"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user