From 4540195cc3a24f03d6270cf31b8524f6674045e6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 6 Mar 2021 09:43:51 +0100 Subject: [PATCH] Two blank lines before function or class definitions --- .github/workflows/test.yml | 2 +- gamestonk_terminal/fundamental_analysis/market_watch_api.py | 1 + gamestonk_terminal/prediction_techniques/arima.py | 1 + gamestonk_terminal/prediction_techniques/fbprophet.py | 1 + gamestonk_terminal/prediction_techniques/knn.py | 1 + gamestonk_terminal/prediction_techniques/pred_menu.py | 1 + gamestonk_terminal/prediction_techniques/regression.py | 1 + gamestonk_terminal/prediction_techniques/sma.py | 1 + gamestonk_terminal/sentiment/reddit_api.py | 1 + gamestonk_terminal/sentiment/stocktwits_api.py | 1 + gamestonk_terminal/technical_analysis/momentum.py | 1 + gamestonk_terminal/technical_analysis/trend.py | 1 + gamestonk_terminal/technical_analysis/volatility.py | 1 + gamestonk_terminal/technical_analysis/volume.py | 1 + 14 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07938ca8c8a..88001d72ac0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: - run: bandit -r . || true - run: black --check . - run: codespell --ignore-words-list="mape" --quiet-level=2 --skip=".git" # --skip="" - - run: flake8 . --count --ignore=E203,E302,F401,F841,W503 --max-line-length=140 --show-source --statistics + - run: flake8 . --count --ignore=E203,F401,F841,W503 --max-line-length=140 --show-source --statistics - run: mypy --ignore-missing-imports . || true - run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true - run: safety check diff --git a/gamestonk_terminal/fundamental_analysis/market_watch_api.py b/gamestonk_terminal/fundamental_analysis/market_watch_api.py index 4c7f0759f63..47539c80ba7 100644 --- a/gamestonk_terminal/fundamental_analysis/market_watch_api.py +++ b/gamestonk_terminal/fundamental_analysis/market_watch_api.py @@ -4,6 +4,7 @@ import pandas as pd from bs4 import BeautifulSoup from gamestonk_terminal.helper_funcs import get_user_agent + # ---------------------------------------------------- INCOME ---------------------------------------------------- def income(l_args, s_ticker): parser = argparse.ArgumentParser( diff --git a/gamestonk_terminal/prediction_techniques/arima.py b/gamestonk_terminal/prediction_techniques/arima.py index a66cbf847ae..77109e2d22b 100644 --- a/gamestonk_terminal/prediction_techniques/arima.py +++ b/gamestonk_terminal/prediction_techniques/arima.py @@ -8,6 +8,7 @@ from gamestonk_terminal.helper_funcs import check_positive, get_next_stock_marke register_matplotlib_converters() + # -------------------------------------------------- ARIMA -------------------------------------------------- # pylint: disable=unused-argument def arima(l_args, s_ticker, s_interval, df_stock): diff --git a/gamestonk_terminal/prediction_techniques/fbprophet.py b/gamestonk_terminal/prediction_techniques/fbprophet.py index c92ae42f704..b11e1f8429e 100644 --- a/gamestonk_terminal/prediction_techniques/fbprophet.py +++ b/gamestonk_terminal/prediction_techniques/fbprophet.py @@ -10,6 +10,7 @@ register_matplotlib_converters() warnings.simplefilter("ignore") + # ----------------------------------------------------- FBPROPHET ----------------------------------------------------- # pylint: disable=unused-argument def fbprophet(l_args, s_ticker, s_interval, df_stock): diff --git a/gamestonk_terminal/prediction_techniques/knn.py b/gamestonk_terminal/prediction_techniques/knn.py index e1ae266a72a..ba08de31066 100644 --- a/gamestonk_terminal/prediction_techniques/knn.py +++ b/gamestonk_terminal/prediction_techniques/knn.py @@ -8,6 +8,7 @@ from gamestonk_terminal.helper_funcs import check_positive, get_next_stock_marke register_matplotlib_converters() + # ----------------------------------------------------- kNN ----------------------------------------------------- # pylint: disable=unused-argument def k_nearest_neighbors(l_args, s_ticker, s_interval, df_stock): diff --git a/gamestonk_terminal/prediction_techniques/pred_menu.py b/gamestonk_terminal/prediction_techniques/pred_menu.py index c8d3ddb34c6..1c66988ec44 100644 --- a/gamestonk_terminal/prediction_techniques/pred_menu.py +++ b/gamestonk_terminal/prediction_techniques/pred_menu.py @@ -7,6 +7,7 @@ from gamestonk_terminal.prediction_techniques import arima from gamestonk_terminal.prediction_techniques import fbprophet from gamestonk_terminal.prediction_techniques import neural_networks + # ----------------------------------------------------------------------------------------------------------------------- def print_prediction(s_ticker, s_start, s_interval): """ Print help """ diff --git a/gamestonk_terminal/prediction_techniques/regression.py b/gamestonk_terminal/prediction_techniques/regression.py index 8fa1cfb4d94..0a82a0a0c21 100644 --- a/gamestonk_terminal/prediction_techniques/regression.py +++ b/gamestonk_terminal/prediction_techniques/regression.py @@ -16,6 +16,7 @@ LINEAR = 1 QUADRATIC = 2 CUBIC = 3 + # -------------------------------------------------- REGRESSION -------------------------------------------------- # pylint: disable=unused-argument def regression(l_args, s_ticker, s_interval, df_stock, polynomial): diff --git a/gamestonk_terminal/prediction_techniques/sma.py b/gamestonk_terminal/prediction_techniques/sma.py index 834c61ce7cb..4bc368e4925 100644 --- a/gamestonk_terminal/prediction_techniques/sma.py +++ b/gamestonk_terminal/prediction_techniques/sma.py @@ -8,6 +8,7 @@ from gamestonk_terminal.helper_funcs import check_positive, get_next_stock_marke register_matplotlib_converters() + # ----------------------------------------------------- SMA ----------------------------------------------------- # pylint: disable=unused-argument def simple_moving_average(l_args, s_ticker, s_interval, df_stock): diff --git a/gamestonk_terminal/sentiment/reddit_api.py b/gamestonk_terminal/sentiment/reddit_api.py index cec57770e1b..b92bc2bab1a 100644 --- a/gamestonk_terminal/sentiment/reddit_api.py +++ b/gamestonk_terminal/sentiment/reddit_api.py @@ -13,6 +13,7 @@ import finviz from gamestonk_terminal.helper_funcs import check_positive from gamestonk_terminal import config_terminal as cfg + # ------------------------------------------------------------------------------------------------------------------- def get_last_time_market_was_open(dt): # Check if it is a weekend diff --git a/gamestonk_terminal/sentiment/stocktwits_api.py b/gamestonk_terminal/sentiment/stocktwits_api.py index 7ea80818b6b..ad29ebb6a1d 100644 --- a/gamestonk_terminal/sentiment/stocktwits_api.py +++ b/gamestonk_terminal/sentiment/stocktwits_api.py @@ -3,6 +3,7 @@ import requests import pandas as pd from gamestonk_terminal.helper_funcs import check_positive + # ------------------------------------------------------------------------------------------------------------------- def bullbear(l_args, s_ticker): parser = argparse.ArgumentParser( diff --git a/gamestonk_terminal/technical_analysis/momentum.py b/gamestonk_terminal/technical_analysis/momentum.py index 566badfe539..9b4f1deee41 100644 --- a/gamestonk_terminal/technical_analysis/momentum.py +++ b/gamestonk_terminal/technical_analysis/momentum.py @@ -6,6 +6,7 @@ from gamestonk_terminal.helper_funcs import check_positive register_matplotlib_converters() + # ----------------------------------------------------- CCI ----------------------------------------------------- def cci(l_args, s_ticker, s_interval, df_stock): parser = argparse.ArgumentParser( diff --git a/gamestonk_terminal/technical_analysis/trend.py b/gamestonk_terminal/technical_analysis/trend.py index 766247141e7..0ae45b8315c 100644 --- a/gamestonk_terminal/technical_analysis/trend.py +++ b/gamestonk_terminal/technical_analysis/trend.py @@ -6,6 +6,7 @@ from gamestonk_terminal.helper_funcs import check_positive register_matplotlib_converters() + # ----------------------------------------------------- ADX ----------------------------------------------------- def adx(l_args, s_ticker, s_interval, df_stock): parser = argparse.ArgumentParser( diff --git a/gamestonk_terminal/technical_analysis/volatility.py b/gamestonk_terminal/technical_analysis/volatility.py index a63b47e7c8d..1fc3b344ead 100644 --- a/gamestonk_terminal/technical_analysis/volatility.py +++ b/gamestonk_terminal/technical_analysis/volatility.py @@ -6,6 +6,7 @@ from gamestonk_terminal.helper_funcs import check_positive register_matplotlib_converters() + # ----------------------------------------------------- BBANDS ----------------------------------------------------- def bbands(l_args, s_ticker, s_interval, df_stock): parser = argparse.ArgumentParser( diff --git a/gamestonk_terminal/technical_analysis/volume.py b/gamestonk_terminal/technical_analysis/volume.py index 63731605174..5be2f781f5d 100644 --- a/gamestonk_terminal/technical_analysis/volume.py +++ b/gamestonk_terminal/technical_analysis/volume.py @@ -6,6 +6,7 @@ from gamestonk_terminal.helper_funcs import check_positive register_matplotlib_converters() + # ------------------------------------------------------- AD ------------------------------------------------------- def ad(l_args, s_ticker, s_interval, df_stock): parser = argparse.ArgumentParser(