override dotenv

This commit is contained in:
Paul Gauthier 2024-08-13 18:06:00 -07:00
parent 277c8b32a7
commit 060c8ff89a

View file

@ -28,8 +28,6 @@ from aider.coders import Coder
from aider.dump import dump # noqa: F401 from aider.dump import dump # noqa: F401
from aider.io import InputOutput from aider.io import InputOutput
load_dotenv()
BENCHMARK_DNAME = Path(os.environ.get("AIDER_BENCHMARK_DIR", "tmp.benchmarks")) BENCHMARK_DNAME = Path(os.environ.get("AIDER_BENCHMARK_DIR", "tmp.benchmarks"))
EXERCISES_DIR_DEFAULT = "exercism-python" EXERCISES_DIR_DEFAULT = "exercism-python"
@ -39,6 +37,8 @@ app = typer.Typer(add_completion=False, pretty_exceptions_enable=False)
NUM_TESTS = (89, 133) NUM_TESTS = (89, 133)
load_dotenv(override=True)
def show_stats(dirnames, graphs): def show_stats(dirnames, graphs):
raw_rows = [] raw_rows = []
@ -590,7 +590,7 @@ def run_test_real(
coder.apply_updates() coder.apply_updates()
else: else:
response = coder.run(with_message=instructions) response = coder.run(with_message=instructions, preproc=False)
dur += time.time() - start dur += time.time() - start
if not no_aider: if not no_aider: