Submission for Code Challenge 36 - Create an AWS Lambda Function. Thanks to Real Python for this excellent beginner tutorial.
As per Real Python's article I set up my Lambda function to receive payload via API Gateway. The lambda retrieves prid
via a POST request and reaches out to GH API to retrieve the py files. It stores them in /tmp and runs PEP8 on them. It returns ok
or results
output upon any violations.
- There is one dependency, the pep8 module, to deploy to AWS, make a zip file of
pep_lambda.py
andpep8.py
and upload it in AWS Lambda generator GUI. To verify locally runverify_pep_lambda.py
.
- Add a webhook for our Challenges repo
- Run unittests upon detection of test_*py files
- Build out to CI and write an article