How to use mypy with my local lambda functions in PyCharm

47 Views Asked by At

My goal is to use mypy updateEc2Ddb.py command in my terminal window for my lambda function. I want to check typing in my lambda function using mypy, but when I run the command from the console from the console I get error like this: 'project_name' is not a valid Python package name. My IDE is PyCharm, I have a SAM application and you can see hierarchy of folders below and I am testing lambda function locally with the 'sam invoke' command.

enter image description here

0

There are 0 best solutions below