From 40b3d6d860c81a32c1b9e5afe0c4892c0934e42e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 5 Mar 2021 22:21:57 +0100 Subject: [PATCH] Do not use the ambiguous variable name 'l' --- .github/workflows/test.yml | 2 +- gamestonk_terminal/helper_funcs.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 12301a273e2..bd777ca0c68 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="" - - 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 diff --git a/gamestonk_terminal/helper_funcs.py b/gamestonk_terminal/helper_funcs.py index 803cbc836d5..1d0ee443898 100644 --- a/gamestonk_terminal/helper_funcs.py +++ b/gamestonk_terminal/helper_funcs.py @@ -206,10 +206,10 @@ def int_or_round_float(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] # -----------------------------------------------------------------------------------------------------------------------