diff --git a/flojoy/node_utils/generate_manifest.py b/flojoy/node_utils/generate_manifest.py index d7a2b2f..5ebedf6 100644 --- a/flojoy/node_utils/generate_manifest.py +++ b/flojoy/node_utils/generate_manifest.py @@ -125,7 +125,8 @@ def sort_order(element): except ValueError: return len(ORDERING) -def generate_manifest(out_path:str): + +def generate_manifest(out_path: str): nodes_map = browse_directories(NODES_PATH.__str__()) nodes_map["children"].sort(key=sort_order) # type: ignore print( @@ -135,5 +136,5 @@ def generate_manifest(out_path:str): f"⚠️ {__failed_nodes.__len__()} nodes require upgrading to align with the new API!" ) with open(out_path, "w") as f: - f.write(json.dumps(nodes_map, indent=3)) - f.close() \ No newline at end of file + f.write(json.dumps(nodes_map, indent=3)) + f.close() diff --git a/flojoy/node_utils/nodes_map.py b/flojoy/node_utils/nodes_map.py index 90f019e..715c1c0 100644 --- a/flojoy/node_utils/nodes_map.py +++ b/flojoy/node_utils/nodes_map.py @@ -30,5 +30,7 @@ def create_map(): # map file name to file path if file.endswith(".py"): mapping[file[:-3]] = "flojoy." + ( - os.path.join(root[root.find("nodes"):], file[:-3]).replace("/", ".").replace("\\", ".") + os.path.join(root[root.find("nodes") :], file[:-3]) + .replace("/", ".") + .replace("\\", ".") )