clean up python with black

This commit is contained in:
Crispy 2023-01-11 22:44:28 +01:00
parent cb5d7c726b
commit 644ce83d14

View file

@ -8,6 +8,7 @@ TARGET_DIR = "./docs/"
INCLUDE_MARKER = "<include " INCLUDE_MARKER = "<include "
INCLUDE_MARKER_END = "/>" INCLUDE_MARKER_END = "/>"
def process_dir(path: str = "") -> None: def process_dir(path: str = "") -> None:
items = os.listdir(PAGE_DIR + path) items = os.listdir(PAGE_DIR + path)
for name in items: for name in items:
@ -17,7 +18,7 @@ def process_dir(path: str = "") -> None:
process_file(path + name) process_file(path + name)
def process_file(filepath: str) -> str: def process_file(filepath: str) -> None:
print("processing " + filepath) print("processing " + filepath)
contents = read_file(PAGE_DIR + filepath) contents = read_file(PAGE_DIR + filepath)
while INCLUDE_MARKER in contents: while INCLUDE_MARKER in contents: