1717
1818# Hiérarchie de priorité basée sur les tags (ordre d'exécution)
1919TAG_PRIORITY_MAP = {
20- # Phase 0: Nettoyage et hygiène du workspace
20+ # Phase 0: Workspace cleanup and hygiene
2121 "clean" : 0 ,
2222 "cleanup" : 0 ,
2323 "sanitize" : 0 ,
2424 "prune" : 0 ,
2525 "tidy" : 0 ,
26- # Phase 1: Validation et vérification des prérequis
26+ # Phase 1: Prerequisite validation and checking
2727 "validation" : 10 ,
2828 "presence" : 10 ,
2929 "check" : 10 ,
3030 "requirements" : 10 ,
3131 "verify" : 10 ,
32- # Phase 2: Préparation et génération des ressources
32+ # Phase 2: Resource preparation and generation
3333 "prepare" : 20 ,
3434 "codegen" : 20 ,
3535 "generate" : 20 ,
4040 "bootstrap" : 20 ,
4141 "configure" : 20 ,
4242 "setup" : 20 ,
43- # Phase 3: Conformité et injection de headers
43+ # Phase 3: Compliance and header injection
4444 "license" : 30 ,
4545 "header" : 30 ,
4646 "normalize" : 30 ,
4949 "banner" : 30 ,
5050 "copyright" : 30 ,
5151 "metadata" : 30 ,
52- # Phase 4: Linting, formatage et vérification de type
52+ # Phase 4: Linting, formatting and type checking
5353 "lint" : 40 ,
5454 "format" : 40 ,
5555 "typecheck" : 40 ,
6161 "isort" : 40 ,
6262 "sort-imports" : 40 ,
6363 "style" : 40 ,
64- # Phase 5: Obfuscation, protection et transpilation (dernière passe )
64+ # Phase 5: Obfuscation, protection and transpilation (last pass )
6565 "obfuscation" : 50 ,
6666 "obfuscate" : 50 ,
6767 "transpile" : 50 ,
@@ -81,13 +81,13 @@ def compute_tag_order(meta_map: dict[str, dict[str, Any]]) -> list[str]:
8181 Tags pris depuis meta_map[pid]["tags"]. Inconnu => DEFAULT_TAG_PRIORITY.
8282
8383 Phases d'exécution:
84- - 0: Nettoyage (clean, cleanup, sanitize)
84+ - 0: Cleanup (clean, cleanup, sanitize)
8585 - 10: Validation (check, requirements, verify)
86- - 20: Préparation (prepare, generate, install, configure)
87- - 30: Conformité (license, header, normalize, inject)
86+ - 20: Preparation (prepare, generate, install, configure)
87+ - 30: Compliance (license, header, normalize, inject)
8888 - 40: Linting (lint, format, typecheck, style)
8989 - 50: Obfuscation (obfuscate, transpile, protect, encrypt)
90- - 100: Défaut (none tag reconnu)
90+ - 100: Default (none tag reconnu)
9191 """
9292
9393 def _compute_score (pid : str ) -> int :
@@ -126,13 +126,13 @@ def get_tag_phase_name(tag: str) -> str:
126126 score = TAG_PRIORITY_MAP .get (tag_lower , DEFAULT_TAG_PRIORITY )
127127
128128 phase_names = {
129- 0 : "Nettoyage " ,
129+ 0 : "Cleanup " ,
130130 10 : "Validation" ,
131- 20 : "Préparation " ,
132- 30 : "Conformité " ,
131+ 20 : "Preparation " ,
132+ 30 : "Compliance " ,
133133 40 : "Linting" ,
134134 50 : "Obfuscation" ,
135- 100 : "Défaut " ,
135+ 100 : "Default " ,
136136 }
137137
138138 return phase_names .get (score , f"Phase { score } " )
@@ -144,7 +144,7 @@ def describe_plugin_priority(plugin_id: str, tags: list[str]) -> str:
144144 Exemple: "plugin_id (lint, format) -> Phase 4: Linting"
145145 """
146146 if not tags :
147- return f"{ plugin_id } (aucun tag) -> Phase { DEFAULT_TAG_PRIORITY } : Défaut "
147+ return f"{ plugin_id } (aucun tag) -> Phase { DEFAULT_TAG_PRIORITY } : Default "
148148
149149 tag_str = ", " .join (str (t ).strip ().lower () for t in tags )
150150 scores = [
0 commit comments