Skip to content

Commit

Permalink
add codegen label
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Apr 20, 2024
1 parent 422d7c2 commit c7ab7f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions rose/genre_hierarchy.gen.py → rose/genre_hierarchy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# THIS FILE WAS GENERATED BY scripts/rym-genres/transform.py. DO NOT EDIT.

# All transient parent genres.
PARENT_GENRES = {
"Ambient": [],
Expand Down
5 changes: 3 additions & 2 deletions scripts/rym-genres/transform.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env python

from pathlib import Path
import logging
import sys
from pprint import pprint
from dataclasses import dataclass
from pathlib import Path

logger = logging.getLogger()
logger.setLevel(logging.INFO)
Expand Down Expand Up @@ -100,6 +99,8 @@ def __repr__(self) -> str:

with open("genres.gen.py", "w") as fp:
fp.write(f"""\
# THIS FILE WAS GENERATED BY scripts/rym-genres/transform.py. DO NOT EDIT.
# All transient parent genres.
PARENT_GENRES = {repr(TRANSIENT_PARENTS)}
Expand Down

0 comments on commit c7ab7f0

Please sign in to comment.