mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
Merge pull request #105 from cclauss/add-blank-lines
Two blank lines before function or class definitions
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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 """
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user