mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
Merge pull request #101 from cclauss/l-and-1-look-alike
Do not use the ambiguous variable name 'l'
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,E722,E741,F401,F841,W503 --max-line-length=140 --show-source --statistics
|
||||
- run: flake8 . --count --ignore=E203,E302,E722,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
|
||||
|
||||
@@ -195,10 +195,10 @@ def int_or_round_float(x):
|
||||
return " " + str(int(x))
|
||||
|
||||
|
||||
def divide_chunks(l, n):
|
||||
# looping till length l
|
||||
for i in range(0, len(l), n):
|
||||
yield l[i : i + n]
|
||||
def divide_chunks(data, n):
|
||||
# looping till length of data
|
||||
for i in range(0, len(data), n):
|
||||
yield data[i : i + n]
|
||||
|
||||
|
||||
def get_next_stock_market_days(last_stock_day, n_next_days) -> list:
|
||||
|
||||
Reference in New Issue
Block a user