@@ -129,9 +129,7 @@ def generate_report(
129129 )
130130
131131 # Write the navigation and general content to a Python file
132- with open (
133- Path (output_dir ) / self .REPORT_MANAG_SCRIPT , "w"
134- ) as nav_manager :
132+ with open (Path (output_dir ) / self .REPORT_MANAG_SCRIPT , "w" ) as nav_manager :
135133 nav_manager .write ("\n " .join (report_manag_content ))
136134 self .report .logger .info (
137135 f"Created app navigation script: { self .REPORT_MANAG_SCRIPT } "
@@ -309,7 +307,11 @@ def _generate_sections(self, output_dir: str) -> None:
309307 )
310308 try :
311309 # Create subsection file
312- subsection_file_path = Path (output_dir ) / section_name_var / f"{ subsection .title .replace (' ' , '_' )} .py"
310+ subsection_file_path = (
311+ Path (output_dir )
312+ / section_name_var
313+ / f"{ subsection .title .replace (' ' , '_' )} .py"
314+ )
313315
314316 # Generate content and imports for the subsection
315317 subsection_content , subsection_imports = (
@@ -457,7 +459,9 @@ def _generate_plot_content(
457459 networkx_graph , html_plot_file = networkx_graph
458460 else :
459461 # Otherwise, create and save a new pyvis network from the netowrkx graph
460- html_plot_file = Path (static_dir ) / f"{ plot .title .replace (' ' , '_' )} .html"
462+ html_plot_file = (
463+ Path (static_dir ) / f"{ plot .title .replace (' ' , '_' )} .html"
464+ )
461465 pyvis_graph = plot .create_and_save_pyvis_network (
462466 networkx_graph , html_plot_file
463467 )
0 commit comments