Skip to content

Commit a518051

Browse files
committed
🎨 cleaning up: remove some code/comments and add some docstrings
1 parent 118ec8c commit a518051

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

src/vuegen/__main__.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ def main():
1414
config_path = args.config
1515
dir_path = args.directory
1616
report_type = args.report_type
17-
output_dir = args.output_directory
18-
streamlit_autorun = args.streamlit_autorun
19-
quarto_cheks = args.quarto_checks
2017

2118
# Determine the report name for logger suffix
2219
if config_path:
@@ -47,9 +44,9 @@ def main():
4744
logger=logger,
4845
config_path=config_path,
4946
dir_path=dir_path,
50-
output_dir=output_dir,
51-
streamlit_autorun=streamlit_autorun,
52-
quarto_checks=quarto_cheks,
47+
output_dir=args.output_directory,
48+
streamlit_autorun=args.streamlit_autorun,
49+
quarto_checks=args.quarto_checks,
5350
)
5451

5552
# Print completion message

src/vuegen/config_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def create_yamlconfig_fromdir(
316316
sorted_sections = self._sort_paths_by_numprefix(list(base_dir_path.iterdir()))
317317

318318
main_section_config = {
319-
"title": "", # self._create_title_fromdir("home_components"),
319+
"title": "",
320320
"description": "Components added to homepage.",
321321
"components": [],
322322
}

src/vuegen/report_generator.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ def get_report(
3434
Path to the directory from which to generate the configuration file.
3535
streamlit_autorun : bool, optional
3636
Whether to automatically run the Streamlit report after generation (default is False).
37+
quarto_checks : bool, optional
38+
Whether to perform checks for Quarto report generation for TeX and Chromium installation
39+
(default is False).
40+
output_dir : Path, optional
41+
The directory where the report folder will be generated.
42+
If not provided, the current directory will be used.
3743
3844
Raises
3945
------

src/vuegen/streamlit_reportview.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ def _generate_sections(self, output_dir: str) -> None:
394394

395395
try:
396396
for section in self.report.sections[1:]:
397-
section_name_var = section.title.replace(" ", "_")
398397
self.report.logger.debug(
399398
f"Processing section '{section.id}': '{section.title}' - {len(section.subsections)} subsection(s)"
400399
)
@@ -429,7 +428,6 @@ def _generate_sections(self, output_dir: str) -> None:
429428
)
430429
try:
431430
# Create subsection file
432-
_subsection_name = make_valid_identifier(subsection.title)
433431
assert (
434432
subsection.file_path is not None
435433
), "Missing relative file path to subsection"

0 commit comments

Comments
 (0)