process_qmd

__main__.process_qmd(qmd_file, linter, keep_temp_files=False, verbose=False)

Convert a .qmd file to .py, lint it, and clean up.

Parameters

Name Type Description Default
qmd_file str or Path Path to the input .qmd file. required
linter str Name of the linter to use (pylint, flake8, mypy). required
keep_temp_files bool If True, retain the temporary .py file after linting. False
verbose bool If True, print detailed progress information. False

Returns

Name Type Description
int 0 on success, nonzero on error.

Notes

Adapted from code generated by Perplexity.