From fcd4f730d5a16e5a43c6c21ad32f6d1ea89879ca Mon Sep 17 00:00:00 2001 From: Tomas Pereira de Vasconcelos Date: Thu, 7 Sep 2023 10:32:58 +0200 Subject: [PATCH] Small refactor --- bin/update_colors_json.py | 3 ++- misc/{_violin.py => plotly_violin.py} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename misc/{_violin.py => plotly_violin.py} (100%) diff --git a/bin/update_colors_json.py b/bin/update_colors_json.py index 16a5e63d..465b1723 100755 --- a/bin/update_colors_json.py +++ b/bin/update_colors_json.py @@ -40,7 +40,8 @@ def main() -> None: all_colorscales_rgb[name.lower()] = colorscale_rgb with _PATH_TO_COLORS_JSON.open(mode="w") as _colors_json: - json.dump(all_colorscales_rgb, _colors_json, indent=2) + json.dump(all_colorscales_rgb, _colors_json, indent=2, sort_keys=True) + _colors_json.write("\n") if __name__ == "__main__": diff --git a/misc/_violin.py b/misc/plotly_violin.py similarity index 100% rename from misc/_violin.py rename to misc/plotly_violin.py