From abda9b14d29072fb8eb0a972bec3f721be9a004e Mon Sep 17 00:00:00 2001 From: James Maslek Date: Thu, 20 Oct 2022 11:20:07 -0400 Subject: [PATCH 1/2] Plot style (#2929) --- openbb_terminal/miscellaneous/styles/default/dark.mplstyle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/miscellaneous/styles/default/dark.mplstyle b/openbb_terminal/miscellaneous/styles/default/dark.mplstyle index 7613947e6311..9c991ad0081d 100644 --- a/openbb_terminal/miscellaneous/styles/default/dark.mplstyle +++ b/openbb_terminal/miscellaneous/styles/default/dark.mplstyle @@ -2,7 +2,7 @@ # LINES # http://matplotlib.org/api/artist_api.html#module-matplotlib.lines -lines.linewidth: 3 +lines.linewidth: 1.5 lines.color: F5EFF3 lines.linestyle: - lines.marker: None @@ -26,7 +26,7 @@ font.style: normal font.variant: normal font.weight: medium font.stretch: normal -font.size: 20 +font.size: 16 text.color: F5EFF3 From 8bdaa661542072bbb40998ffff53edee9711c9d0 Mon Sep 17 00:00:00 2001 From: James Simmons <53658028+simmonsj330@users.noreply.github.com> Date: Thu, 20 Oct 2022 16:07:58 -0400 Subject: [PATCH 2/2] alswe change (#2932) --- .github/workflows/test.yml | 2 +- .pre-commit-config.yaml | 2 +- .../miscellaneous/data_sources_default.json | 2 +- openbb_terminal/miscellaneous/i18n/en.yml | 2 +- .../mutual_funds/mutual_fund_controller.py | 12 ++++++------ 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a72559eb0296..a5a7bcf7e9af 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: key: ${{ runner.os }}-v1-linting restore-keys: ${{ runner.os }}-v1-linting - - run: python custom_pre_commit/check_doc.py --ignore-files=settings_controller.py,keys_controller.py,featflags_controller.py,degiro_controller.py,oanda_controller.py --ignore-commands=login,al_swe,info_swe,goodness,resources,yf,yolo,featflags,guess,settings,survey,intro + - run: python custom_pre_commit/check_doc.py --ignore-files=settings_controller.py,keys_controller.py,featflags_controller.py,degiro_controller.py,oanda_controller.py --ignore-commands=login,alswe,info_swe,goodness,resources,yf,yolo,featflags,guess,settings,survey,intro - run: pip install bandit black codespell flake8 mypy pyupgrade safety pylint==2.15.2 - run: pip install types-pytz types-requests types-termcolor types-tabulate types-PyYAML types-python-dateutil types-setuptools types-six - run: bandit -x ./tests -r . || true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 886ae36b2081..d82d18f9162d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: args: [ "--ignore-files=settings_controller.py,featflags_controller.py,keys_controller.py,degiro_controller.py,", - "--ignore-commands=login,al_swe,info_swe,goodness,resources,yf,yolo,from,to,featflags,guess,settings,survey", + "--ignore-commands=login,alswe,info_swe,goodness,resources,yf,yolo,from,to,featflags,guess,settings,survey", ] entry: python custom_pre_commit/check_doc.py - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/openbb_terminal/miscellaneous/data_sources_default.json b/openbb_terminal/miscellaneous/data_sources_default.json index 785444b8a6b2..69abfc2ca250 100644 --- a/openbb_terminal/miscellaneous/data_sources_default.json +++ b/openbb_terminal/miscellaneous/data_sources_default.json @@ -497,7 +497,7 @@ "plot": ["Investing"], "sector": ["YahooFinance"], "equity": ["YahooFinance"], - "al_swe": ["Avanza"], + "alswe": ["Avanza"], "info_swe": ["Avanza"] }, "alternative": { diff --git a/openbb_terminal/miscellaneous/i18n/en.yml b/openbb_terminal/miscellaneous/i18n/en.yml index 07b468a8016c..372887737fdb 100644 --- a/openbb_terminal/miscellaneous/i18n/en.yml +++ b/openbb_terminal/miscellaneous/i18n/en.yml @@ -858,7 +858,7 @@ en: funds/plot: plot loaded historical fund data funds/sector: sector weightings funds/equity: equity holdings - funds/al_swe: display fund allocation (sector, country, holdings) + funds/alswe: display fund allocation (sector, country, holdings) funds/info_swe: get fund information funds/forecast: forecasting techniques alternative/covid: COVID menu, cases, deaths, rates diff --git a/openbb_terminal/mutual_funds/mutual_fund_controller.py b/openbb_terminal/mutual_funds/mutual_fund_controller.py index 3ffe94592c9f..9a2cc6d5f17b 100644 --- a/openbb_terminal/mutual_funds/mutual_fund_controller.py +++ b/openbb_terminal/mutual_funds/mutual_fund_controller.py @@ -48,7 +48,7 @@ class FundController(BaseController): "plot", "sector", "equity", - "al_swe", + "alswe", "info_swe", "forecast", ] @@ -112,7 +112,7 @@ def __init__(self, queue: List[str] = None): "--min": one_to_hundred, "-m": "--min", } - choices["al_swe"] = {"--focus": {c: {} for c in self.focus_choices}} + choices["alswe"] = {"--focus": {c: {} for c in self.focus_choices}} choices["support"] = self.SUPPORT_CHOICES choices["about"] = self.ABOUT_CHOICES @@ -145,7 +145,7 @@ def print_help(self): mt.add_cmd("sector", self.fund_symbol) mt.add_cmd("equity", self.fund_symbol) if self.country == "sweden": - mt.add_cmd("al_swe", self.fund_symbol) + mt.add_cmd("alswe", self.fund_symbol) mt.add_cmd("info_swe", self.fund_symbol) mt.add_cmd("forecast", self.fund_symbol) console.print(text=mt.menu_text, menu="Mutual Funds") @@ -457,12 +457,12 @@ def call_equity(self, other_args: List[str]): return self.queue @log_start_end(log=logger) - def call_al_swe(self, other_args: List[str]): - """Process al_swe command""" + def call_alswe(self, other_args: List[str]): + """Process alswe command""" parser = argparse.ArgumentParser( add_help=False, formatter_class=argparse.ArgumentDefaultsHelpFormatter, - prog="al_swe", + prog="alswe", description="Show allocation of a swedish fund.", ) parser.add_argument(