Currently validation errors are logged as large fstrings directly, and right next to each one we write the same fstring to a parameter of the ValidationError object (error_message). We can just save it once as
error_message = f"Message here"
and then do logging and reporting more simply as
logger.error(error_message)
validation_errors.append(ValidationError(idx+2, ... [other values] ..., error_message))
Currently validation errors are logged as large fstrings directly, and right next to each one we write the same fstring to a parameter of the ValidationError object (error_message). We can just save it once as
and then do logging and reporting more simply as