Skip to content

Commit 5e583a6

Browse files
committed
🎨 Style: add black format
1 parent 904d8fd commit 5e583a6

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/vuegen/quarto_reportview.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ def generate_report(
124124
report_formatted_imports = "\n".join(report_unique_imports)
125125

126126
# Write the navigation and general content to a Python file
127-
with open(
128-
Path(output_dir) / f"{self.BASE_DIR}.qmd", "w"
129-
) as quarto_report:
127+
with open(Path(output_dir) / f"{self.BASE_DIR}.qmd", "w") as quarto_report:
130128
quarto_report.write(yaml_header)
131129
quarto_report.write(
132130
f"""\n```{{python}}

src/vuegen/streamlit_reportview.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)