From 57a808f19d4967f1579b17281546d0429ebc9311 Mon Sep 17 00:00:00 2001 From: c0de Date: Mon, 24 Oct 2022 20:05:21 -0500 Subject: [PATCH] Create lint log --- .gitignore | 1 + GhostBallBot/game.py | 2 ++ GhostBallBot/lint.sh | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d0e17d8..642b41c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea/* __pycache__/ *.db +*.log diff --git a/GhostBallBot/game.py b/GhostBallBot/game.py index 1685589..39c0443 100644 --- a/GhostBallBot/game.py +++ b/GhostBallBot/game.py @@ -8,6 +8,7 @@ import dateparser from database.models import database, GameModel, GuessModel + async def check_is_running(method, start_new_game=True): """ Decorator that determines if the game is running or not @@ -26,6 +27,7 @@ async def check_is_running(method, start_new_game=True): return await wrapper + class Game: """ The game state class diff --git a/GhostBallBot/lint.sh b/GhostBallBot/lint.sh index 522b620..9c70aa4 100755 --- a/GhostBallBot/lint.sh +++ b/GhostBallBot/lint.sh @@ -1,4 +1,4 @@ #!/bin/bash -pylint main.py game.py discord_client database +pylint main.py game.py discord_client database > lint.log black main.py game.py discord_client database