feat: add script to check that UI files contain the env suffix macro for dev/prod
Deploy / deploy (push) Successful in 1m33s

This commit is contained in:
Benjamin Labrecque
2026-07-27 10:00:35 +02:00
parent 90bd22c0e5
commit 3de7536b27
35 changed files with 1259 additions and 40 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ from pathlib import Path
from pydantic import DirectoryPath, FilePath, model_validator
from pydantic_settings import BaseSettings
from core.utils import get_git_root
from agebd.utils import get_git_root
REPO_ROOT = get_git_root(__file__)
+1 -1
View File
@@ -4,8 +4,8 @@ import sys
import ansible_runner
import typer
from agebd.utils import get_git_root
from core.enums import IOC_ENV
from core.utils import get_git_root
ioc = typer.Typer(no_args_is_help=True)
+1 -1
View File
@@ -5,9 +5,9 @@ from pathlib import Path
import copier
from agebd.utils import get_git_root
from core.exceptions import UVError
from core.git import GitRepoManager
from core.utils import get_git_root
from models import (
Service,
)
-18
View File
@@ -1,18 +0,0 @@
import logging
from pathlib import Path
import git
def get_git_root(path) -> Path:
git_repo = git.Repo(path, search_parent_directories=True)
git_root = git_repo.git.rev_parse("--show-toplevel")
return Path(git_root)
def init_logging(log_level: str = "info"):
"""
Configure logging -- set log level
"""
logging.basicConfig(level=getattr(logging, log_level.upper()))
+1 -1
View File
@@ -1,9 +1,9 @@
import typer
from agebd.utils import get_git_root
from config.paths import Paths
from core.ansible import run_playbook
from core.enums import IOC_ENV
from core.utils import get_git_root
from models import ServiceRegistry
ioc = typer.Typer(no_args_is_help=True)
+1 -1
View File
@@ -3,7 +3,7 @@ import typer
from config.paths import Paths
from core.git import GitRepoManager
from core.service_creator import ServiceCreator
from core.utils import get_git_root, init_logging
from agebd.utils import get_git_root, init_logging
from models import ServiceRegistry
from models.context import ServicesContext