From 37ba579efbd1ec90bd938c0371e05462d733b4ec Mon Sep 17 00:00:00 2001 From: viperior Date: Sun, 28 Nov 2021 18:17:20 -0800 Subject: [PATCH 1/4] Add verbose option, -v, to pytest call in GitHub action --- .github/workflows/python-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 42ea654..19c367b 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -29,4 +29,4 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pytest + pytest -v From 27e03d2c2c9ef3aee121b2464b8caf65ab8fb022 Mon Sep 17 00:00:00 2001 From: viperior Date: Sun, 28 Nov 2021 18:20:22 -0800 Subject: [PATCH 2/4] Attempt to force an unused-import lint error --- tests/test_flip_coins_function.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_flip_coins_function.py b/tests/test_flip_coins_function.py index d35904a..dcb5249 100644 --- a/tests/test_flip_coins_function.py +++ b/tests/test_flip_coins_function.py @@ -1,6 +1,7 @@ """Example test case""" import logging +import pylint from games_of_chance.flip_coins import flip_coins From a1f29a28530bbfd8f98f5875214e0a444ae1ea90 Mon Sep 17 00:00:00 2001 From: viperior Date: Sun, 28 Nov 2021 18:33:05 -0800 Subject: [PATCH 3/4] Remove forced unused-import error --- tests/test_flip_coins_function.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_flip_coins_function.py b/tests/test_flip_coins_function.py index dcb5249..d35904a 100644 --- a/tests/test_flip_coins_function.py +++ b/tests/test_flip_coins_function.py @@ -1,7 +1,6 @@ """Example test case""" import logging -import pylint from games_of_chance.flip_coins import flip_coins From 7a0521dc991c11ec7e3e4e2234580daea9198c9c Mon Sep 17 00:00:00 2001 From: viperior Date: Sun, 28 Nov 2021 18:36:15 -0800 Subject: [PATCH 4/4] Add more space before and align inline comments --- games_of_chance/flip_coins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games_of_chance/flip_coins.py b/games_of_chance/flip_coins.py index a771e2d..a5445d2 100644 --- a/games_of_chance/flip_coins.py +++ b/games_of_chance/flip_coins.py @@ -40,8 +40,8 @@ def flip_coins(coins_to_flip: int, chosen_side: str) -> dict: # Perform the coin flips flip_data = [ - 0, # heads - 0 # tails + 0, # heads + 0 # tails ] flip_pip_chart = "" flip_pip_chart_map = ["H", "T"]