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.21.tar.gz (16.8 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.21-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws_cdk_common-0.1.21.tar.gz
  • Upload date:
  • Size: 16.8 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.21.tar.gz
Algorithm Hash digest
SHA256 7b8db6852ba737c31e771b5b41d0279be89604c6078e87f8d4eef7b5c1a0647a
MD5 098d9e4f27b42a1def03017ccbce0791
BLAKE2b-256 1b37904b237e2cabb2dd565ad5c13c24a460876c27a06de3a1b426c05eab6049

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_cdk_common-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 19.7 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.21-py3-none-any.whl
Algorithm Hash digest
SHA256 a9ebb0fe5e66d80793c056dd399561cefd4e8d156a122d381e31ad99e08327ce
MD5 be986eaa0b9810a9048e7ab5ead22442
BLAKE2b-256 46b625bd7fdb5ef57cf1ae34a0f6b10c7573fd277b0fc73f0a09287b75f5fc8b

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