Skip to content

Commit

Permalink
Merge branch 'main' into next-major
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 28, 2023
2 parents 1ca7e25 + 52caf68 commit 3cb889c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.3.0](https://github.com/lpm0073/automatic-grader/compare/v1.2.0...v1.3.0) (2023-11-28)


### Features

* add configurable rubric ([fdc3da8](https://github.com/lpm0073/automatic-grader/commit/fdc3da80d0dafd36c78f840a393a00bdca5b04b3))

# [1.2.0](https://github.com/lpm0073/automatic-grader/compare/v1.1.6...v1.2.0) (2023-11-28)


Expand Down
3 changes: 2 additions & 1 deletion grader/grader.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def validate_grade(self) -> "Grade":
return self

@field_validator("message_type")
def message_type_is_valid(self, message_type):
@classmethod
def message_type_is_valid(cls, message_type):
"""Validate that the message_type is valid"""
if message_type not in VALID_MESSAGE_TYPES:
raise ValueError(f"message_type must be one of {VALID_MESSAGE_TYPES}")
Expand Down

0 comments on commit 3cb889c

Please sign in to comment.