summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCaptainJack2491 <jayrupnakawala@gmail.com>2026-02-26 15:29:02 +0000
committerCaptainJack2491 <jayrupnakawala@gmail.com>2026-02-26 15:29:02 +0000
commita6b38c54ee72cbae1d696b02f32ad487391a5dfe (patch)
tree3aa2001f4fc394272310c998b0c6f2ed479a4081 /src
parent375eddf1bd4e23db80feb74c6272dad610345795 (diff)
chore: add .env.example + config.yaml.example, gitignore config.yaml
- Create .env.example with placeholder keys for all providers - Create config.yaml.example with clean reference config - Add config.yaml and judge_logs/ to .gitignore - Load .env in judge.py for standalone usage
Diffstat (limited to 'src')
-rw-r--r--src/judge.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/judge.py b/src/judge.py
index 0d5117d..076b04a 100644
--- a/src/judge.py
+++ b/src/judge.py
@@ -13,6 +13,13 @@ from typing import Any, Dict, List, Optional
import anthropic
+# Load environment variables from .env file
+try:
+ from dotenv import load_dotenv
+ load_dotenv()
+except ImportError:
+ pass # python-dotenv not installed
+
# ---------------------------------------------------------------------------
# Constants