From c0b5ff62658aa9354599ea5be802fcfeddec7b01 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Thu, 24 Aug 2023 17:35:35 +0100 Subject: [PATCH] first we ruff and then we black --- .../app/static/package/__extensions__.py | 1 - .../openbb_core/app/static/package/crypto.py | 6 +- .../openbb_core/app/static/package/economy.py | 6 +- .../openbb_core/app/static/package/forex.py | 6 +- .../app/static/package/module_map.json | 70 +++++++++---------- .../openbb_core/app/static/package/stocks.py | 6 +- .../openbb_core/app/static/package_builder.py | 2 +- 7 files changed, 48 insertions(+), 49 deletions(-) diff --git a/openbb_sdk/sdk/core/openbb_core/app/static/package/__extensions__.py b/openbb_sdk/sdk/core/openbb_core/app/static/package/__extensions__.py index 2637ce0f8b6..df604bd275c 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/static/package/__extensions__.py +++ b/openbb_sdk/sdk/core/openbb_core/app/static/package/__extensions__.py @@ -1,7 +1,6 @@ ### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ### - from openbb_core.app.static.container import Container diff --git a/openbb_sdk/sdk/core/openbb_core/app/static/package/crypto.py b/openbb_sdk/sdk/core/openbb_core/app/static/package/crypto.py index 724f4d94e20..ca8270f3ead 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/static/package/crypto.py +++ b/openbb_sdk/sdk/core/openbb_core/app/static/package/crypto.py @@ -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) """ diff --git a/openbb_sdk/sdk/core/openbb_core/app/static/package/economy.py b/openbb_sdk/sdk/core/openbb_core/app/static/package/economy.py index 6a1665a0127..27f0e6aa179 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/static/package/economy.py +++ b/openbb_sdk/sdk/core/openbb_core/app/static/package/economy.py @@ -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) """ diff --git a/openbb_sdk/sdk/core/openbb_core/app/static/package/forex.py b/openbb_sdk/sdk/core/openbb_core/app/static/package/forex.py index ab2f8b7f0b8..91e640d2049 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/static/package/forex.py +++ b/openbb_sdk/sdk/core/openbb_core/app/static/package/forex.py @@ -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) """ diff --git a/openbb_sdk/sdk/core/openbb_core/app/static/package/module_map.json b/openbb_sdk/sdk/core/openbb_core/app/static/package/module_map.json index 35b68afc0ad..27dfc08bed2 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/static/package/module_map.json +++ b/openbb_sdk/sdk/core/openbb_core/app/static/package/module_map.json @@ -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", diff --git a/openbb_sdk/sdk/core/openbb_core/app/static/package/stocks.py b/openbb_sdk/sdk/core/openbb_core/app/static/package/stocks.py index 441f2b03bdd..b239719e0b0 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/static/package/stocks.py +++ b/openbb_sdk/sdk/core/openbb_core/app/static/package/stocks.py @@ -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) """ diff --git a/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py b/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py index f36a3e47348..584f1b41605 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py +++ b/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py @@ -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: