mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
WIP: Add load_dotenv import and remove unused imports in coder.py.
This commit is contained in:
parent
bd88c4c40f
commit
af972538f1
1 changed files with 2 additions and 5 deletions
7
coder.py
7
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)
|
||||
sys.exit(status)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue