@@ -296,7 +296,7 @@ def run_report(self, output_dir: str = SECTIONS_DIR) -> None:
296296 f"All the scripts to build the Streamlit app are available at { output_dir } "
297297 )
298298 self .report .logger .info (
299- f "To run the Streamlit app, use the following command:"
299+ "To run the Streamlit app, use the following command:"
300300 )
301301 self .report .logger .info (
302302 f"streamlit run { Path (output_dir ) / self .REPORT_MANAG_SCRIPT } "
@@ -381,7 +381,7 @@ def _generate_home_section(
381381
382382 # Create the home page content
383383 home_content = []
384- home_content .append (f "import streamlit as st" )
384+ home_content .append ("import streamlit as st" )
385385 if subsection_imports :
386386 home_content .extend (subsection_imports )
387387 if self .report .description :
@@ -409,9 +409,9 @@ def _generate_home_section(
409409
410410 # Add the home page to the report manager content
411411 report_manag_content .append (
412- f "homepage = st.Page('Home/Homepage.py', title='Homepage')" # ! here Posix Path is hardcoded
412+ "homepage = st.Page('Home/Homepage.py', title='Homepage')" # ! here Posix Path is hardcoded
413413 )
414- report_manag_content .append (f "sections_pages['Home'] = [homepage]\n " )
414+ report_manag_content .append ("sections_pages['Home'] = [homepage]\n " )
415415 self .report .logger .info ("Home page added to the report manager content." )
416416 except Exception as e :
417417 self .report .logger .error (f"Error generating the home section: { str (e )} " )
@@ -430,7 +430,6 @@ def _generate_sections(self, output_dir: str) -> None:
430430
431431 try :
432432 for section in self .report .sections [1 :]:
433- section_name_var = section .title .replace (" " , "_" )
434433 self .report .logger .debug (
435434 f"Processing section '{ section .id } ': '{ section .title } ' - { len (section .subsections )} subsection(s)"
436435 )
@@ -604,11 +603,11 @@ def _generate_plot_content(self, plot) -> List[str]:
604603 html_plot_file = (
605604 Path (self .static_dir ) / f"{ plot .title .replace (' ' , '_' )} .html"
606605 )
607- pyvis_graph = plot .create_and_save_pyvis_network (
606+ _ = plot .create_and_save_pyvis_network (
608607 networkx_graph , html_plot_file
609608 )
610609
611- # Add number of nodes and edges to the plor conetnt
610+ # Add number of nodes and edges to the plot content
612611 num_nodes = networkx_graph .number_of_nodes ()
613612 num_edges = networkx_graph .number_of_edges ()
614613
0 commit comments