Skip to content

Commit

Permalink
Merge branch 'main' into economic_cal
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaslek authored Oct 20, 2022
2 parents e4e176c + 8bdaa66 commit 8fe6df0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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,intro"
"--ignore-commands=login,alswe,info_swe,goodness,resources,yf,yolo,from,to,featflags,guess,settings,survey,intro"
]
entry: python custom_pre_commit/check_doc.py
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/miscellaneous/data_sources_default.json
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@
"plot": ["Investing"],
"sector": ["YahooFinance"],
"equity": ["YahooFinance"],
"al_swe": ["Avanza"],
"alswe": ["Avanza"],
"info_swe": ["Avanza"]
},
"alternative": {
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/miscellaneous/i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions openbb_terminal/miscellaneous/styles/default/dark.mplstyle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
12 changes: 6 additions & 6 deletions openbb_terminal/mutual_funds/mutual_fund_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class FundController(BaseController):
"plot",
"sector",
"equity",
"al_swe",
"alswe",
"info_swe",
"forecast",
]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 8fe6df0

Please sign in to comment.