From e1612f905d757fff48c9caca381bbbca8ba99152 Mon Sep 17 00:00:00 2001 From: DidierRLopes Date: Wed, 30 Jun 2021 00:22:03 +0100 Subject: [PATCH] Update donation section with patreon (#526) * Update donation section with patreon * Update based on pylint update it seems * remove git import to fix bugs * another pylint complain * pylint stop crying pls --- README.md | 10 +++++----- gamestonk_terminal/brokers/ally_api.py | 2 ++ .../comparison_analysis/yahoo_finance_view.py | 2 +- gamestonk_terminal/main_helper.py | 10 ++++++---- gamestonk_terminal/menu.py | 2 +- .../portfolio_analysis/portfolio_parser.py | 2 ++ tests/test_discovery_ark_model.py | 3 ++- tests/test_pred_neural_networks.py | 8 ++++---- 8 files changed, 23 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index f67855154db..46a0d4ee83a 100644 --- a/README.md +++ b/README.md @@ -85,13 +85,13 @@ As a modern Python-based environment, GamestonkTerminal opens access to numerous ## Donation -GST is a completely free open-source terminal. My personal goal has always been to keep this terminal available for everyone to use at zero cost. +Gamestonk Terminal is a free Open-Source Software. This means that the entire codebase is public, and any user can use it for free. -Lately, some developers have been helping me in this endeavour. As you can probably tell from the git history, the terminal has been increasing in features/robustness at a really fast pace. Since none of us are getting paid to do so, and we all have 9-5 jobs, it's hard to onbard people to work towards the cause. On a personal level, I stopped investing since the repository was made public, since I spend all my spare time working on it, and don't have time left for DD. +A small team of us are consistently working to provide as many updates to the project as we can, and this is done out of hours, often late nights to improve this tool. Whilst we don't earn any money from Gamestonk Terminal, we want to make sure that all our users can make the best investments from our software. As we continue to build on this project, we would really appreciate any type of donation or support so we can buy more coffees to fuel us even more! -There are many ways to help support GST. If technical development or support are one of your strengths, join our [discord](https://discord.gg/Up2QGbMKHY). Otherwise, you could certainly help us by providing a donation to our coinbase crypto wallet: **3Pfx7NwGgmZsk7hQJxzHdp5rGBftUHVTiM**. +Here's our Patreon page: https://www.patreon.com/gamestonkterminal -Sharing the terminal with friends and family would also go a long way. Thanks in advance ape. +There are many ways to help support GST. If you want to help, non-monetarily, join our [discord](https://discord.gg/Up2QGbMKHY). Sharing the terminal with friends would also go a long way. Thanks in advance ape. ## Getting Started @@ -317,7 +317,7 @@ Example: ## Contributing -There are 3 main ways of contributing to this project. +There are 3 main ways of contributing to this project. For a 1h coding session where the architecture of the repo is explained while a new feature is added, check https://www.youtube.com/watch?v=9BMI9cleTTg. diff --git a/gamestonk_terminal/brokers/ally_api.py b/gamestonk_terminal/brokers/ally_api.py index f03f5a60458..7c9ccad3fef 100644 --- a/gamestonk_terminal/brokers/ally_api.py +++ b/gamestonk_terminal/brokers/ally_api.py @@ -5,6 +5,8 @@ import yfinance as yf from termcolor import colored from gamestonk_terminal.brokers.brokers_helpers import ally_positions_to_df +# pylint: disable=no-member + def login(): try: diff --git a/gamestonk_terminal/comparison_analysis/yahoo_finance_view.py b/gamestonk_terminal/comparison_analysis/yahoo_finance_view.py index 15c6bea8a48..8dff15bd690 100644 --- a/gamestonk_terminal/comparison_analysis/yahoo_finance_view.py +++ b/gamestonk_terminal/comparison_analysis/yahoo_finance_view.py @@ -265,7 +265,7 @@ def correlation(other_args, df_stock, ticker, start, interval, similar): df_stock = d_stock[ticker][ d_candle_types[ns_parser.type_candle] ].rename(ticker) - for symbol in d_stock: + for symbol in d_stock.items(): if symbol != ticker: if not d_stock[symbol].empty: df_stock = pd.concat( diff --git a/gamestonk_terminal/main_helper.py b/gamestonk_terminal/main_helper.py index f7d5aea55bf..952c8b3c696 100644 --- a/gamestonk_terminal/main_helper.py +++ b/gamestonk_terminal/main_helper.py @@ -17,7 +17,8 @@ import mplfinance as mpf import yfinance as yf import pytz from tabulate import tabulate -import git + +# import git # pylint: disable=no-member @@ -758,9 +759,10 @@ def bootup(): print(e, "\n") # Print first welcome message and help - print( - f"\nWelcome to Gamestonk Terminal Beta ({str(git.Repo('.').head.commit)[:7]})" - ) + print("\nWelcome to Gamestonk Terminal Beta") + + # The commit has was commented out because the terminal was crashing due to git import for multiple users + # ({str(git.Repo('.').head.commit)[:7]}) if gtff.ENABLE_THOUGHTS_DAY: print("-------------------") diff --git a/gamestonk_terminal/menu.py b/gamestonk_terminal/menu.py index e9667ebcf72..7bb33f6d03b 100644 --- a/gamestonk_terminal/menu.py +++ b/gamestonk_terminal/menu.py @@ -12,7 +12,7 @@ def inputhook(inputhook_context): try: pyplot.pause(0.1) # pylint: disable=unused-variable - except Exception as e: # noqa: F841 + except Exception: # noqa: F841 continue return False diff --git a/gamestonk_terminal/portfolio_analysis/portfolio_parser.py b/gamestonk_terminal/portfolio_analysis/portfolio_parser.py index 0edd38d819c..f414fbb1ae2 100644 --- a/gamestonk_terminal/portfolio_analysis/portfolio_parser.py +++ b/gamestonk_terminal/portfolio_analysis/portfolio_parser.py @@ -9,6 +9,8 @@ import pandas as pd import yfinance as yf from gamestonk_terminal.helper_funcs import check_valid_path, parse_known_args_and_warn +# pylint: disable=no-member,unsupported-assignment-operation,unsubscriptable-object + def load_csv_portfolio(other_args: List[str]): """Load portfolio from csv diff --git a/tests/test_discovery_ark_model.py b/tests/test_discovery_ark_model.py index 2caedac9680..71fe4f6341e 100644 --- a/tests/test_discovery_ark_model.py +++ b/tests/test_discovery_ark_model.py @@ -4,7 +4,8 @@ from unittest import mock from io import StringIO import pandas as pd -# pylint: disable=unused-import +# pylint: disable=unused-import,no-member + from gamestonk_terminal.test_helper import ( # noqa: F401 parameterize_from_file, pytest_generate_tests, diff --git a/tests/test_pred_neural_networks.py b/tests/test_pred_neural_networks.py index 303038f2a02..d804cc4f129 100644 --- a/tests/test_pred_neural_networks.py +++ b/tests/test_pred_neural_networks.py @@ -3,9 +3,9 @@ import unittest try: from gamestonk_terminal.prediction_techniques.neural_networks_view import mlp -except ModuleNotFoundError as e: +except ModuleNotFoundError as e_module: print("One of the optional packages seems to be missing") - print(e) + print(e_module) print("Skipping the test") from gamestonk_terminal import feature_flags as gtff @@ -20,7 +20,7 @@ class TestPredNeuralNetworks(unittest.TestCase): try: # Fix: need to move loading of ticker data into a df somewhere mlp([], "TLSA", None) - except NameError as e: + except NameError as e_name: print("One of the optional packages seems to be missing") - print(e) + print(e_name) print("Skipping the test")