first we ruff and then we black

This commit is contained in:
Diogo Sousa
2023-08-24 17:35:35 +01:00
parent c26a75b48a
commit c0b5ff6265
7 changed files with 48 additions and 49 deletions

View File

@@ -1,7 +1,6 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
from openbb_core.app.static.container import Container

View File

@@ -43,7 +43,7 @@ class CLASS_crypto(Container):
provider: Optional[Literal["fmp", "polygon", "yfinance"]] = None,
**kwargs
) -> OBBject[List]:
r"""Crypto EOD Price.
"""Crypto EOD Price.
Parameters
----------
@@ -119,11 +119,11 @@ class CLASS_crypto(Container):
change : Optional[float]
Change in the price of the symbol from the previous day. (provider: fmp)
change_percent : Optional[float]
Change \% in the price of the symbol. (provider: fmp)
Change \\% in the price of the symbol. (provider: fmp)
label : Optional[str]
Human readable format of the date. (provider: fmp)
change_over_time : Optional[float]
Change \% in the price of the symbol over a period of time. (provider: fmp)
Change \\% in the price of the symbol over a period of time. (provider: fmp)
n : Optional[PositiveInt]
Number of transactions for the symbol in the time period. (provider: polygon)
"""

View File

@@ -675,7 +675,7 @@ class CLASS_economy(Container):
provider: Optional[Literal["fmp", "polygon", "yfinance"]] = None,
**kwargs
) -> OBBject[List]:
r"""Get OHLCV data for an index.
"""Get OHLCV data for an index.
Parameters
----------
@@ -751,11 +751,11 @@ class CLASS_economy(Container):
change : Optional[float]
Change in the price of the symbol from the previous day. (provider: fmp)
change_percent : Optional[float]
Change \% in the price of the symbol. (provider: fmp)
Change \\% in the price of the symbol. (provider: fmp)
label : Optional[str]
Human readable format of the date. (provider: fmp)
change_over_time : Optional[float]
Change \% in the price of the symbol over a period of time. (provider: fmp)
Change \\% in the price of the symbol over a period of time. (provider: fmp)
n : Optional[PositiveInt]
Number of transactions for the symbol in the time period. (provider: polygon)
"""

View File

@@ -44,7 +44,7 @@ class CLASS_forex(Container):
provider: Optional[Literal["fmp", "polygon", "yfinance"]] = None,
**kwargs
) -> OBBject[List]:
r"""Forex Intraday Price.
"""Forex Intraday Price.
Parameters
----------
@@ -118,11 +118,11 @@ class CLASS_forex(Container):
change : Optional[float]
Change in the price of the symbol from the previous day. (provider: fmp)
change_percent : Optional[float]
Change \% in the price of the symbol. (provider: fmp)
Change \\% in the price of the symbol. (provider: fmp)
label : Optional[str]
Human readable format of the date. (provider: fmp)
change_over_time : Optional[float]
Change \% in the price of the symbol over a period of time. (provider: fmp)
Change \\% in the price of the symbol over a period of time. (provider: fmp)
n : Optional[PositiveInt]
Number of transactions for the symbol in the time period. (provider: polygon)
"""

View File

@@ -69,41 +69,6 @@
"futures_load": "/futures/load",
"futures": "/futures",
"futures_curve": "/futures/curve",
"economy_corecpi": "/economy/corecpi",
"economy": "/economy",
"economy_const": "/economy/const",
"economy_cpi": "/economy/cpi",
"economy_cpi_options": "/economy/cpi_options",
"economy_index": "/economy/index",
"economy_available_indices": "/economy/available_indices",
"economy_risk": "/economy/risk",
"economy_macro": "/economy/macro",
"economy_macro_countries": "/economy/macro_countries",
"economy_macro_parameters": "/economy/macro_parameters",
"economy_balance": "/economy/balance",
"economy_bigmac": "/economy/bigmac",
"economy_country_codes": "/economy/country_codes",
"economy_currencies": "/economy/currencies",
"economy_debt": "/economy/debt",
"economy_events": "/economy/events",
"economy_fgdp": "/economy/fgdp",
"economy_fred": "/economy/fred",
"economy_fred_search": "/economy/fred_search",
"economy_futures": "/economy/futures",
"economy_gdp": "/economy/gdp",
"economy_glbonds": "/economy/glbonds",
"economy_indices": "/economy/indices",
"economy_overview": "/economy/overview",
"economy_perfmap": "/economy/perfmap",
"economy_performance": "/economy/performance",
"economy_revenue": "/economy/revenue",
"economy_rgdp": "/economy/rgdp",
"economy_rtps": "/economy/rtps",
"economy_search_index": "/economy/search_index",
"economy_spending": "/economy/spending",
"economy_trust": "/economy/trust",
"economy_usbonds": "/economy/usbonds",
"economy_valuation": "/economy/valuation",
"stocks_fa_analysis": "/stocks/fa/analysis",
"stocks": "/stocks",
"stocks_fa": "/stocks/fa",
@@ -243,6 +208,41 @@
"stocks_search": "/stocks/search",
"stocks_quote": "/stocks/quote",
"stocks_info": "/stocks/info",
"economy_corecpi": "/economy/corecpi",
"economy": "/economy",
"economy_const": "/economy/const",
"economy_cpi": "/economy/cpi",
"economy_cpi_options": "/economy/cpi_options",
"economy_index": "/economy/index",
"economy_available_indices": "/economy/available_indices",
"economy_risk": "/economy/risk",
"economy_macro": "/economy/macro",
"economy_macro_countries": "/economy/macro_countries",
"economy_macro_parameters": "/economy/macro_parameters",
"economy_balance": "/economy/balance",
"economy_bigmac": "/economy/bigmac",
"economy_country_codes": "/economy/country_codes",
"economy_currencies": "/economy/currencies",
"economy_debt": "/economy/debt",
"economy_events": "/economy/events",
"economy_fgdp": "/economy/fgdp",
"economy_fred": "/economy/fred",
"economy_fred_search": "/economy/fred_search",
"economy_futures": "/economy/futures",
"economy_gdp": "/economy/gdp",
"economy_glbonds": "/economy/glbonds",
"economy_indices": "/economy/indices",
"economy_overview": "/economy/overview",
"economy_perfmap": "/economy/perfmap",
"economy_performance": "/economy/performance",
"economy_revenue": "/economy/revenue",
"economy_rgdp": "/economy/rgdp",
"economy_rtps": "/economy/rtps",
"economy_search_index": "/economy/search_index",
"economy_spending": "/economy/spending",
"economy_trust": "/economy/trust",
"economy_usbonds": "/economy/usbonds",
"economy_valuation": "/economy/valuation",
"fixedincome_treasury": "/fixedincome/treasury",
"fixedincome": "/fixedincome",
"fixedincome_ycrv": "/fixedincome/ycrv",

View File

@@ -219,7 +219,7 @@ class CLASS_stocks(Container):
provider: Optional[Literal["cboe", "fmp", "polygon", "yfinance"]] = None,
**kwargs
) -> OBBject[List]:
r"""Load stock data for a specific ticker.
"""Load stock data for a specific ticker.
Parameters
----------
@@ -295,11 +295,11 @@ class CLASS_stocks(Container):
change : Optional[float]
Change in the price of the symbol from the previous day. (provider: fmp)
change_percent : Optional[float]
Change \% in the price of the symbol. (provider: fmp)
Change \\% in the price of the symbol. (provider: fmp)
label : Optional[str]
Human readable format of the date. (provider: fmp)
change_over_time : Optional[float]
Change \% in the price of the symbol over a period of time. (provider: fmp)
Change \\% in the price of the symbol over a period of time. (provider: fmp)
n : Optional[PositiveInt]
Number of transactions for the symbol in the time period. (provider: polygon)
"""

View File

@@ -100,8 +100,8 @@ class PackageBuilder:
def run_linters(cls):
"""Run the linters."""
print("\nRunning linters...")
Linters.black()
Linters.ruff()
Linters.black()
@staticmethod
def write_to_package(module_code: str, module_name, extension="py") -> None: