Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 776 Bytes

File metadata and controls

32 lines (19 loc) · 776 Bytes

git-autograder

Git Autograder used for Git Mastery exercise solutions.

Installation

pip install git-autograder

Usage

GitAutograderRepo initializes and reads the submission repository. It contains critical information for autograding such as the start commit (denoted by git-mastery-start-<first commit short hash>) and user's commits.

For basic usage:

from git_autograder import autograder, GitAutograderOutput, GitAutograderRepo

@autograder()
def grade(repo: GitAutograderRepo) -> GitAutograderOuput:
  ...

Unit tests

To execute the unit tests, run uv run pytest -s -vv.

Full Developer Guide

The complete developer guide can be found in this reference.