WIP: Add load_dotenv import and remove unused imports in coder.py.

This commit is contained in:
Paul Gauthier 2023-05-08 23:19:36 -07:00
parent bd88c4c40f
commit af972538f1

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys
import re import re
import readline import readline
@ -12,6 +11,7 @@ from colorama import Fore, Style
from rich.live import Live from rich.live import Live
from rich.text import Text from rich.text import Text
from rich.markdown import Markdown from rich.markdown import Markdown
from dotenv import load_dotenv
from tqdm import tqdm from tqdm import tqdm
@ -566,9 +566,6 @@ class Coder:
return commit_hash, commit_message return commit_hash, commit_message
import os
from dotenv import load_dotenv
def main(): def main():
load_dotenv() load_dotenv()
env_prefix = "CODER_" env_prefix = "CODER_"
@ -633,4 +630,4 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
status = main() status = main()
sys.exit(status) sys.exit(status)