Use shared formatter target choices
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user