From fe1cc239a43ac44ed914562a9642a8d262fd3488 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sun, 12 Feb 2023 16:17:22 -0600 Subject: [PATCH] style: add formatting to generate-all --- generate-all.py | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/generate-all.py b/generate-all.py index 0fb9ea0..aa8e3ba 100755 --- a/generate-all.py +++ b/generate-all.py @@ -1,31 +1,46 @@ #!/usr/bin/env python3 -from logo import generate -from pathlib import Path import sys +from pathlib import Path + +from logo import generate + def main(): rev = sys.argv[1] - comment =f"© 2022 Daylin Morgan | rev. {rev}" + comment = f"© 2022 Daylin Morgan | rev. {rev}" if not (Path.cwd() / "docs" / "svg").is_dir(): print("making docs directory") (Path.cwd() / "docs" / "svg").mkdir(exist_ok=True) - for theme in ['dark','light']: - for background in ['rect','circle',None]: - for border in [True,False]: - name = ['logo'] + for theme in ["dark", "light"]: + for background in ["rect", "circle", None]: + for border in [True, False]: + name = ["logo"] if background: name.append(f"bg-{background}") if border: - name.append(f"b") + name.append("b") name.append(theme) name = f"docs/svg/{'-'.join(name)}.svg" - generate(name=name,background=background,border=border,theme=theme,comment=comment) + generate( + name=name, + background=background, + border=border, + theme=theme, + comment=comment, + ) + + generate( + name=f"docs/{theme}.svg", + background="circle", + border=True, + theme=theme, + comment=comment, + ) - generate(name=f"docs/{theme}.svg",background="circle",border=True,theme=theme,comment=comment) if __name__ == "__main__": main()