Skip to content

Commit b5dad76

Browse files
committed
build: ignore version field in palette.json
1 parent 0d6186a commit b5dad76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
def load_palette_json() -> dict[str, Any]:
2121
"""Load palette data from `./palette.json`."""
2222
with Path("palette.json").open() as f:
23-
return cast(dict[str, Any], json.load(f))
23+
palette_json = cast(dict[str, Any], json.load(f))
24+
del palette_json["version"]
25+
return palette_json
2426

2527

2628
def make_color(identifier: str, fields: dict[str, Any]) -> Color:

0 commit comments

Comments
 (0)