A shared package for common modules and constants for AWS Lambda applications
Project description
aws-cdk-common
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_cdk_common-0.1.26.tar.gz.
File metadata
- Download URL: aws_cdk_common-0.1.26.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1243fc67564b744cda2e67597faff8cf295e5529af41f127cf19d04d8df06ab3
|
|
| MD5 |
93b354cf5800f8d649550fc9824ced6c
|
|
| BLAKE2b-256 |
06f7975827fb43de47d60b55823c3a3838ec896fd6d84fc91f746b31b94248bc
|
File details
Details for the file aws_cdk_common-0.1.26-py3-none-any.whl.
File metadata
- Download URL: aws_cdk_common-0.1.26-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fc0837190152ccaa8f15f01ef35d9745a2e8fe5e807dd2626c3670a1aa2de8d
|
|
| MD5 |
28a7cdc5881074119a6ac68dda2927e8
|
|
| BLAKE2b-256 |
33079bb9d22085c2229c280af6441ab2d5a6c2aa9a62d61a0d31801567e4f0c8
|