From c7ab7f0857feadbdbb69453d01059ee8e08558d4 Mon Sep 17 00:00:00 2001 From: blissful Date: Sat, 20 Apr 2024 17:10:51 -0400 Subject: [PATCH] add codegen label --- rose/{genre_hierarchy.gen.py => genre_hierarchy.py} | 2 ++ scripts/rym-genres/transform.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) rename rose/{genre_hierarchy.gen.py => genre_hierarchy.py} (99%) diff --git a/rose/genre_hierarchy.gen.py b/rose/genre_hierarchy.py similarity index 99% rename from rose/genre_hierarchy.gen.py rename to rose/genre_hierarchy.py index fac11fc..2dd71bf 100644 --- a/rose/genre_hierarchy.gen.py +++ b/rose/genre_hierarchy.py @@ -1,3 +1,5 @@ +# THIS FILE WAS GENERATED BY scripts/rym-genres/transform.py. DO NOT EDIT. + # All transient parent genres. PARENT_GENRES = { "Ambient": [], diff --git a/scripts/rym-genres/transform.py b/scripts/rym-genres/transform.py index 5dcd60e..0ec1380 100755 --- a/scripts/rym-genres/transform.py +++ b/scripts/rym-genres/transform.py @@ -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) @@ -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)}