process_qmd

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

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

Parameters

Name Type Description Default
qmd_file str | 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
lint_non_exec bool If True, also lint non-executable Python code chunks. False

Returns

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