Skip to main content

A shared package for common modules and constants for AWS Lambda applications

Project description

aws-cdk-common

Code style: black Imports: isort

aws-cdk-common is a shared package for common modules and constants for AWS Lambda applications based on AWS CDK.

Python environment

Installing Poetry

Poetry is a tool to manage Python projects in a deterministic way.

Installing pipx

pipx installs and run Python applications in isolated environment. Follow the instructions listed in pipx documentation for your specific environment.

Installing Poetry

pipx install poetry

Installing required modules

To install required modules, run:

poetry install --no-root

Setting Up the Development Environment

To install required modules for development, run:

poetry install --with dev --no-root

Pre-commit Hooks

We use pre-commit to ensure consistent code quality. Install the pre-commit hooks by running:

poetry run pre-commit install

Code Formatting and Quality Checks

  • To format code with Black:
poetry run black .
  • To sort imports with isort:
pipenv run isort .
  • To check code quality with Flake8:
poetry run flake8 .

These tools help maintain code quality and consistency across the project.

Tests

Unit tests

To run unit tests, after installing required modules for development, run:

poetry shell
pytest tests/unit

Integration tests

To run unit tests, after installing required modules for development, run:

poetry shell
pytest tests/integration

All tests

You can also run all tests (unit and integration) by running:

poetry shell
pytest 

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

aws_cdk_common-0.1.18.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_cdk_common-0.1.18-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file aws_cdk_common-0.1.18.tar.gz.

File metadata

  • Download URL: aws_cdk_common-0.1.18.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for aws_cdk_common-0.1.18.tar.gz
Algorithm Hash digest
SHA256 980027332789f2a6f6c2355d929ba94832e2b7b190fa6cd734d966f6be721a0a
MD5 d94564d8121771365c4d40a6392e74ec
BLAKE2b-256 9bdf44067c9c21fd303a7204424e7e6f09b5b97903c19d1b74407f3d64b35ff5

See more details on using hashes here.

File details

Details for the file aws_cdk_common-0.1.18-py3-none-any.whl.

File metadata

  • Download URL: aws_cdk_common-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for aws_cdk_common-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 d8bb91dce310d8ade127a1bfd2d82d2f0c40178a20410eae42c4bd0b80c81ea0
MD5 8eb29ac52d329588088a6732a9461794
BLAKE2b-256 00362a4c8298ac8ec7902c32648bfa148777aa5bbceec033f6cee938a2549d2e

See more details on using hashes here.

Supported by

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