Skip to main content

Run python based static file linters on AWS lambda.

Project description

lintipy

AWS Lambda handlers for GitHub events wrapped in SNS messages.

How it works

workflow

The services is designed following event-driven architecture. It is solely based upon AWS services. Namely AWS Lambda as event consumers and emitters as well as consumers and AWS SNS as channels.

The exchange of events between AWS and GitHub is done using CRUD HTTP methods. Events coming from GitHub are transferred to SNS using a small API Gateway service called github-webhook-lambda. This part is not displayed in the sequence diagram above. Essentially each event coming from GitHub forwarded to a SNS. The topic of the SNS event is the same as the GitHub event type.

Note that the check suite does not interact directly with the check runs nor via SNS. We rely on GitHub to trigger the correct events. This means that initial running of a check or rerunning it using the GitHub interface are treated identically.

Usage

from lintipy import CheckRun

handle = CheckRun.as_handler('PEP8', 'pycodestyle', '.')

See also:

This package is used on FussyFox

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lintipy-1.4.4.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

lintipy-1.4.4-py2.py3-none-any.whl (9.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lintipy-1.4.4.tar.gz.

File metadata

  • Download URL: lintipy-1.4.4.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

File hashes

Hashes for lintipy-1.4.4.tar.gz
Algorithm Hash digest
SHA256 6600ee38d70f1d09a8bcfa988dde3fc094628f7d411f33b9eeb8fd64b266fa5d
MD5 e158d3f0595bb7a1b8b5c4ea81968d6c
BLAKE2b-256 beead9bf0af3c8c47b1e9ef7df2c07e3a0443c593cc179471823f546a53fd626

See more details on using hashes here.

File details

Details for the file lintipy-1.4.4-py2.py3-none-any.whl.

File metadata

  • Download URL: lintipy-1.4.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

File hashes

Hashes for lintipy-1.4.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 470331daed129cea4d16e4bb52ea7976aa97d684dac6dbbd7ae3e5fd63de6455
MD5 b37eb22130f0d034d565698fd7f98716
BLAKE2b-256 757760f7bdf4f69c716289785223fd76836a689d3ab9846cd1a322452ec68581

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page