mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-05-23 09:33:33 +00:00
fix(ops): centralize INVENTORY_PATH in src/config.py to resolve import errors across scripts
This commit is contained in:
@@ -7,7 +7,7 @@ import yaml
|
||||
import hashlib
|
||||
from datetime import datetime
|
||||
from typing import List, Dict, Optional, Tuple
|
||||
from src.config import GH_TOKEN, TARGET_REPO, GEMINI_API_KEY, NUBENETES_CATEGORIES, MADRID_TZ
|
||||
from src.config import GH_TOKEN, TARGET_REPO, GEMINI_API_KEY, NUBENETES_CATEGORIES, MADRID_TZ, INVENTORY_PATH
|
||||
from src.gitops_manager import RepositoryController
|
||||
from src.gemini_utils import call_gemini_with_retry, normalize_url, clean_toc_text
|
||||
from src.logger import log_event
|
||||
@@ -186,8 +186,6 @@ async def evaluate_extracted_assets(raw_assets: List[Dict]) -> Dict[str, Dict]:
|
||||
|
||||
return evaluations
|
||||
|
||||
INVENTORY_PATH = "data/inventory.yaml"
|
||||
|
||||
class AgenticCurator:
|
||||
def __init__(self):
|
||||
self.git_controller = RepositoryController(GH_TOKEN, TARGET_REPO)
|
||||
|
||||
@@ -38,6 +38,9 @@ GEMINI_API_VERSION = "v1beta"
|
||||
|
||||
TARGET_REPO = "nubenetes/awesome-kubernetes"
|
||||
|
||||
# Single Source of Truth for Database Location
|
||||
INVENTORY_PATH = "data/inventory.yaml"
|
||||
|
||||
NUBENETES_CATEGORIES = [
|
||||
'ChromeDevTools', 'GoogleCloudPlatform', 'about', 'ai-agents-mcp', 'ai', 'angular',
|
||||
'ansible', 'api', 'appointment-scheduling', 'argo', 'aws-architecture', 'aws-backup',
|
||||
|
||||
@@ -3,9 +3,9 @@ import re
|
||||
import subprocess
|
||||
import yaml
|
||||
from datetime import datetime
|
||||
from src.config import INVENTORY_PATH
|
||||
|
||||
# Unified Path Config
|
||||
INVENTORY_PATH = "data/inventory.yaml"
|
||||
V1_DIR = "docs"
|
||||
V2_DIR = "v2-docs"
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ import re
|
||||
from datetime import datetime
|
||||
from src.logger import log_event
|
||||
from src.gemini_utils import normalize_url
|
||||
from src.config import INVENTORY_PATH
|
||||
|
||||
INVENTORY_PATH = "data/inventory.yaml"
|
||||
V1_DIR = "docs"
|
||||
V2_DIR = "v2-docs"
|
||||
SPECIAL_ASSETS_PATH = "data/special_assets.yaml"
|
||||
|
||||
Reference in New Issue
Block a user