Skip to content

Commit 0b4ff37

Browse files
Lasse Benningaclaude
andcommitted
fix: add python-dotenv so .env works without export or sourcing
Students running `uv run python -m src.pipeline` locally now get env vars loaded automatically from .env — no export prefix needed, no `source .env` workaround, works on macOS/Linux/Windows Git Bash. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4fe6c47 commit 0b4ff37

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies = [
88
"azure-storage-blob==12.25.1",
99
"requests==2.32.3",
1010
"pandas==2.2.3",
11+
"python-dotenv>=1.0",
1112
]
1213

1314
[dependency-groups]

src/pipeline.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
import os
55
import sys
66

7+
from dotenv import load_dotenv
8+
9+
load_dotenv()
10+
711
import pandas as pd
812
from pydantic import ValidationError
913

uv.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)