format check and lint resolved
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 11s
Python / lint-format (pull_request) Successful in 19s
Python / test (pull_request) Successful in 46s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m50s

This commit is contained in:
2026-05-22 23:26:33 +02:00
parent f147969f37
commit 0309fde3aa
3 changed files with 20 additions and 39 deletions
+9 -8
View File
@@ -78,12 +78,14 @@ def _discover_schemes() -> dict[str, SchemeMeta]:
if modes:
vname = var_dir.name.capitalize()
variants.append(SchemeVariant(
id=var_dir.name,
name=vname,
modes=frozenset(modes),
accents=tuple(sorted(accents)),
))
variants.append(
SchemeVariant(
id=var_dir.name,
name=vname,
modes=frozenset(modes),
accents=tuple(sorted(accents)),
)
)
schemes[sid] = SchemeMeta(
id=sid,
@@ -118,8 +120,7 @@ def get_palette(scheme: str, variant: str, mode: str, accent: str | None = None)
if not txt_path.exists():
var_info = next(v for v in meta.variants if v.id == variant)
raise FileNotFoundError(
f"No {mode} palette for '{scheme}:{variant}'. "
f"Available modes: {sorted(var_info.modes)}"
f"No {mode} palette for '{scheme}:{variant}'. Available modes: {sorted(var_info.modes)}"
)
colors = _parse_txt(txt_path)