feat(Actions): added auto linting to main and pull requests fixed some typos

This commit is contained in:
2024-12-21 14:23:46 -07:00
parent b23d807d8d
commit 078bc71bf9
5 changed files with 66 additions and 12 deletions

View File

@ -35,15 +35,7 @@ def SelectAppointment (file_name, appointmentJson):
``Contact``: darkicewolf50@gmail.com
"""
"""
Example of an incoming http post body
{
"intervieweeName": "Brock",
"date": "9/16/2024",
"startTime": "11:00:00",
"intervieweeEmail": "darkicewolf50@gmail.com"
}
"""
try:
validEmail = validate_email(appointmentJson["intervieweeEmail"], check_deliverability=True)
if validEmail:
@ -58,5 +50,6 @@ def SelectAppointment (file_name, appointmentJson):
return resBody
except EmailNotValidError as e:
print(e)
return {"Success": False, "validEmail": "false"}