mirror of
https://github.com/aljazceru/Tutorial-Codebase-Knowledge.git
synced 2025-12-18 15:04:20 +01:00
add support for .env with python-dotenv
This commit is contained in:
2
.env.sample
Normal file
2
.env.sample
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
GEMINI_PROJECT_ID=<GEMINI_PROJECT_ID>
|
||||||
|
GITHUB_TOKEN=<GITHUB_TOKEN>
|
||||||
3
main.py
3
main.py
@@ -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",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user