Merge pull request #105 from cclauss/add-blank-lines

Two blank lines before function or class definitions
This commit is contained in:
Artem Veremey
2021-03-06 09:38:23 -08:00
committed by GitHub
13 changed files with 13 additions and 1 deletions

View File

@@ -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

View File

@@ -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):

View File

@@ -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):

View File

@@ -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):

View File

@@ -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 """

View File

@@ -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):

View File

@@ -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):

View File

@@ -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

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(