Use shared formatter target choices

This commit is contained in:
2026-06-27 13:49:42 +02:00
parent bd3adfcd5a
commit 928f55d2c3
4 changed files with 20 additions and 6 deletions
+4
View File
@@ -26,6 +26,10 @@ class PairTargetPolicy:
include_hardcore: bool
def target_choices() -> list[str]:
return list(FORMATTER_TARGETS)
def normalize_target(value: Any) -> str:
target = str(value or "").strip().lower().replace("-", "_").replace(" ", "_")
target = _TARGET_ALIASES.get(target, target)