Skip to contents

Serializes a rubric (one or more questions' rubric items plus optional scoring setup) to a human-readable, schema-validatable YAML file. Items are written in display order; order is meaningful, as the first ten items are bound to keyboard hotkeys on import. No per-repository grading data is written.

Usage

write_rubric_yaml(rubric, path)

Arguments

rubric

A rubric list as returned by read_rubric_yaml() or rubric_export(): format_version plus a questions list whose entries have name, items (a list of markermd_rubric_item objects) and optionally scoring (a markermd_grade_state object).

path

Output file path (.yaml).

Value

The output path, invisibly.