From af972538f1ce1f41abba7fc96135221641d8fb12 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 8 May 2023 23:19:36 -0700 Subject: [PATCH] WIP: Add load_dotenv import and remove unused imports in coder.py. --- coder.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/coder.py b/coder.py index 8d5220e08..56775c6fa 100755 --- a/coder.py +++ b/coder.py @@ -1,6 +1,5 @@ #!/usr/bin/env python - import sys import re import readline @@ -12,6 +11,7 @@ from colorama import Fore, Style from rich.live import Live from rich.text import Text from rich.markdown import Markdown +from dotenv import load_dotenv from tqdm import tqdm @@ -566,9 +566,6 @@ class Coder: return commit_hash, commit_message -import os -from dotenv import load_dotenv - def main(): load_dotenv() env_prefix = "CODER_" @@ -633,4 +630,4 @@ def main(): if __name__ == "__main__": status = main() - sys.exit(status) \ No newline at end of file + sys.exit(status)