Missing submit button #57
This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / Black
failed
Nov 16, 2023 in 0s
2 errors
Black found 2 errors
Annotations
github-actions / Black
/home/runner/work/certification-tool-backend/certification-tool-backend/app/constants/websockets_constants.py#L24-L35
# Enum Keys for different types of messages currently supported by the tool
class MessageTypeEnum(str, Enum):
PROMPT_REQUEST = "prompt_request"
OPTIONS_REQUEST = "options_request"
- MESSAGE_REQUEST = "message_request"
+ MESSAGE_REQUEST = "message_request"
PROMPT_RESPONSE = "prompt_response"
TEST_UPDATE = "test_update"
TIME_OUT_NOTIFICATION = "time_out_notification"
TEST_LOG_RECORDS = "test_log_records"
INVALID_MESSAGE = "invalid_message"
github-actions / Black
/home/runner/work/certification-tool-backend/certification-tool-backend/app/user_prompt_support/user_prompt_manager.py#L56-L67
if "options" in prompt_dict:
if prompt_dict["options"]:
message_type = MessageTypeEnum.OPTIONS_REQUEST
else:
message_type = MessageTypeEnum.MESSAGE_REQUEST
-
+
message_dict = {
MessageKeysEnum.TYPE: MessageTypeEnum.PROMPT_REQUEST,
MessageKeysEnum.PAYLOAD: prompt_dict,
}
return message_dict
Loading