Skip to content

Commit a8a96ef

Browse files
committed
🥅 Build: add validation for quarto installation. Closes #47
1 parent f1fbbfa commit a8a96ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vuegen/report_generator.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
import shutil
23

34
from .config_manager import ConfigManager
45
from .quarto_reportview import QuartoReportView
@@ -61,6 +62,11 @@ def get_report(
6162
st_report.run_report()
6263

6364
else:
65+
# Check if Quarto is installed
66+
if shutil.which("quarto") is None:
67+
logger.error("Quarto is not installed. Please install Quarto before generating this report type.")
68+
raise RuntimeError("Quarto is not installed. Please install Quarto before generating this report type.")
69+
6470
quarto_report = QuartoReportView(report=report, report_type=report_type)
6571
quarto_report.generate_report()
6672
quarto_report.run_report()

0 commit comments

Comments
 (0)