Merge pull request #500 from Fyve-Labs/hotfix/definition_missing
Some checks are pending
Create and publish Docker images with specific build args / build-main-image (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (push) Waiting to run
Create and publish Docker images with specific build args / build-minimum-image (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-minimum-images (push) Blocked by required conditions

fix(undefined-const): hotfix for missing constants
This commit is contained in:
Tim Jaeryang Baek 2025-04-12 16:37:16 -07:00 committed by GitHub
commit 8cfdd63ae0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import os
import logging
####################################
# Load .env file
####################################
@ -11,5 +11,14 @@ try:
except ImportError:
print("dotenv not installed, skipping...")
# Define log levels dictionary
LOG_LEVELS = {
'DEBUG': logging.DEBUG,
'INFO': logging.INFO,
'WARNING': logging.WARNING,
'ERROR': logging.ERROR,
'CRITICAL': logging.CRITICAL
}
API_KEY = os.getenv("PIPELINES_API_KEY", "0p3n-w3bu!")
PIPELINES_DIR = os.getenv("PIPELINES_DIR", "./pipelines")

View File

@ -29,7 +29,7 @@ import sys
import subprocess
from config import API_KEY, PIPELINES_DIR
from config import API_KEY, PIPELINES_DIR, LOG_LEVELS
if not os.path.exists(PIPELINES_DIR):
os.makedirs(PIPELINES_DIR)