add support for .env with python-dotenv

This commit is contained in:
Mathieu Dupuis
2025-04-06 17:07:47 -04:00
parent 6c574db77d
commit a07b94fc3b
3 changed files with 6 additions and 0 deletions

2
.env.sample Normal file
View File

@@ -0,0 +1,2 @@
GEMINI_PROJECT_ID=<GEMINI_PROJECT_ID>
GITHUB_TOKEN=<GITHUB_TOKEN>

View File

@@ -1,8 +1,11 @@
import dotenv
import os import os
import argparse import argparse
# Import the function that creates the flow # Import the function that creates the flow
from flow import create_tutorial_flow from flow import create_tutorial_flow
dotenv.load_dotenv()
# Default file patterns # Default file patterns
DEFAULT_INCLUDE_PATTERNS = { DEFAULT_INCLUDE_PATTERNS = {
"*.py", "*.js", "*.ts", "*.go", "*.java", "*.pyi", "*.pyx", "*.py", "*.js", "*.ts", "*.go", "*.java", "*.pyi", "*.pyx",

View File

@@ -3,3 +3,4 @@ pyyaml>=6.0
requests>=2.28.0 requests>=2.28.0
google-cloud-aiplatform>=1.25.0 google-cloud-aiplatform>=1.25.0
google-genai>=1.9.0 google-genai>=1.9.0
python-dotenv>=1.0.0