Git Autograder used for Git Mastery exercise solutions.
pip install git-autograder
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:
...
To execute the unit tests, run python -m pytest -s -vv
.