In this article we review last week's Create an AWS Lambda Function code challenge.
bbelderbos: as per Real Python's article I set up my Lambda function to receive payload via API Gateway. The lambda retrieves a PR number (id) via a POST request and retrieves the associated .py files via the GH API. It stores them in /tmp and runs PEP8 against them. If good it returns 'ok', else it shows the violations.
TODOS: add a webhook for our Challenges repo to run this automatically. It would be nice to run unittests on test_*.py files. You could actually turn this into a simple CI which when done I will write an article about. Project here.
Keep Calm and Code in Python!
-- Bob and Julian
See an error in this post? Please submit a pull request on Github.