diff --git a/.zshrc b/.zshrc deleted file mode 100644 index 842f4ffd57e..00000000000 --- a/.zshrc +++ /dev/null @@ -1,2 +0,0 @@ -y - diff --git a/gamestonk_terminal/alternative/alt_api.py b/gamestonk_terminal/alternative/alt_api.py new file mode 100644 index 00000000000..12dfa779186 --- /dev/null +++ b/gamestonk_terminal/alternative/alt_api.py @@ -0,0 +1,6 @@ +"""Alt context API.""" +# flake8: noqa +# pylint: disable=unused-import + +# Context menus +from .covid import covid_api as covid diff --git a/gamestonk_terminal/alternative/covid/covid_api.py b/gamestonk_terminal/alternative/covid/covid_api.py new file mode 100644 index 00000000000..2dc0649632d --- /dev/null +++ b/gamestonk_terminal/alternative/covid/covid_api.py @@ -0,0 +1,17 @@ +"""Insider Trading API.""" +import os +from gamestonk_terminal.helper_classes import ModelsNamespace as _models + +# flake8: noqa +# pylint: disable=unused-import + +# Menu commands +from gamestonk_terminal.alternative.covid.covid_view import display_covid_ov as ov +from gamestonk_terminal.alternative.covid.covid_view import display_covid_stat as stat +from gamestonk_terminal.alternative.covid.covid_view import ( + display_country_slopes as slopes, +) + + +# Models +models = _models(os.path.abspath(os.path.dirname(__file__))) diff --git a/gamestonk_terminal/alternative/covid/covid_view.py b/gamestonk_terminal/alternative/covid/covid_view.py index 202bfb31bc6..dc9b1847a2b 100644 --- a/gamestonk_terminal/alternative/covid/covid_view.py +++ b/gamestonk_terminal/alternative/covid/covid_view.py @@ -18,7 +18,9 @@ from gamestonk_terminal.helper_funcs import ( ) -def display_covid_ov(country, raw: bool = False, limit: int = 10, export: str = ""): +def display_covid_ov( + country, raw: bool = False, limit: int = 10, export: str = "" +) -> None: """Show historical cases and deaths by country Parameters @@ -87,7 +89,7 @@ def display_covid_ov(country, raw: bool = False, limit: int = 10, export: str = def display_covid_stat( country, stat: str = "cases", raw: bool = False, limit: int = 10, export: str = "" -): +) -> None: """Show historical cases and deaths by country Parameters @@ -164,7 +166,7 @@ def display_country_slopes( ascend: bool = False, threshold: int = 10000, export: str = "", -): +) -> None: """ Parameters diff --git a/gamestonk_terminal/api.py b/gamestonk_terminal/api.py index 4bfaf59610f..1d0bbdc000e 100644 --- a/gamestonk_terminal/api.py +++ b/gamestonk_terminal/api.py @@ -1,3 +1,4 @@ # flake8: noqa # pylint: disable=unused-import from .stocks import stocks_api as stocks +from .alternative import alt_api as alt