1717ARK configuration loading module
1818
1919Ce module est responsable de:
20- - Loadr la configuration depuis le file ARK_Main_Config .yml à la racine du workspace
20+ - Loadr la configuration depuis le file ark .yml à la racine du workspace
2121- Gérer les patterns d'inclusion/exclusion de files
2222- Fournir des fonctions utilitaires pour accéder aux options de configuration
2323- Créer un file de configuration par défaut si nécessaire
7777# CONFIGURATION PAR DÉFAUT
7878# =============================================================================
7979# Cette configuration est utilisée comme base lorsque aucun fichier
80- # ARK_Main_Config .yml n'est trouvé dans le workspace. Elle peut être
80+ # ark .yml n'est trouvé dans le workspace. Elle peut être
8181# partiellement ou entièrement surchargée par la configuration utilisateur.
8282
8383DEFAULT_CONFIG = {
@@ -163,10 +163,10 @@ def load_ark_config(workspace_dir: str) -> dict[str, Any]:
163163 utilisateur avec les valeurs par défaut.
164164
165165 Fichiers recherchés (ordre de priorité):
166- 1. ARK_Main_Config .yaml
167- 2. ARK_Main_Config .yml
168- 3. .ARK_Main_Config .yaml
169- 4. .ARK_Main_Config .yml
166+ 1. ark .yaml
167+ 2. ark .yml
168+ 3. .ark .yaml
169+ 4. .ark .yml
170170
171171 Args:
172172 workspace_dir: Path absolu vers le directory du workspace
@@ -199,10 +199,10 @@ def load_ark_config(workspace_dir: str) -> dict[str, Any]:
199199
200200 # Liste des candidats fichiers de configuration par ordre de priorité
201201 config_candidates = [
202- workspace_path / "ARK_Main_Config .yaml" ,
203- workspace_path / "ARK_Main_Config .yml" ,
204- workspace_path / ".ARK_Main_Config .yaml" ,
205- workspace_path / ".ARK_Main_Config .yml" ,
202+ workspace_path / "ark .yaml" ,
203+ workspace_path / "ark .yml" ,
204+ workspace_path / ".ark .yaml" ,
205+ workspace_path / ".ark .yml" ,
206206 ]
207207
208208 # Rechercher le premier fichier de configuration existant
@@ -326,7 +326,7 @@ def get_entrypoint(config: dict[str, Any]) -> Optional[str]:
326326
327327def save_ark_config (workspace_dir : str , config : dict [str , Any ]) -> bool :
328328 """
329- Save ARK configuration to ARK_Main_Config .yml.
329+ Save ARK configuration to ark .yml.
330330
331331 Args:
332332 workspace_dir: Path du workspace
@@ -339,7 +339,7 @@ def save_ark_config(workspace_dir: str, config: dict[str, Any]) -> bool:
339339 return False
340340 try :
341341 workspace_path = Path (workspace_dir )
342- config_file = workspace_path / "ARK_Main_Config .yml"
342+ config_file = workspace_path / "ark .yml"
343343 with open (config_file , "w" , encoding = "utf-8" ) as f :
344344 yaml .safe_dump (
345345 config ,
@@ -355,7 +355,7 @@ def save_ark_config(workspace_dir: str, config: dict[str, Any]) -> bool:
355355
356356def set_entrypoint (workspace_dir : str , entrypoint : Optional [str ]) -> bool :
357357 """
358- Update entry point in ARK_Main_Config .yml.
358+ Update entry point in ark .yml.
359359
360360 Args:
361361 workspace_dir: Path du workspace
@@ -481,7 +481,7 @@ def should_exclude_file(
481481
482482def create_default_ark_config (workspace_dir : str ) -> bool :
483483 """
484- Create ARK_Main_Config .yml with default configuration.
484+ Create ark .yml with default configuration.
485485
486486 Cette fonction génère un file de configuration complet avec
487487 toutes les options disponibles et leurs valeurs par défaut.
@@ -498,7 +498,7 @@ def create_default_ark_config(workspace_dir: str) -> bool:
498498 return False
499499
500500 workspace_path = Path (workspace_dir )
501- config_file = workspace_path / "ARK_Main_Config .yml"
501+ config_file = workspace_path / "ark .yml"
502502
503503 # Ne pas écraser un fichier existant
504504 if config_file .exists ():
@@ -583,7 +583,7 @@ def create_default_ark_config(workspace_dir: str) -> bool:
583583 log_with_level (
584584 None ,
585585 "warning" ,
586- f"Échec de la création de ARK_Main_Config .yml: { e } " ,
586+ f"Échec de la création de ark .yml: { e } " ,
587587 )
588588 except Exception :
589589 pass
0 commit comments