Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 821 Bytes

DEVELOPMENT.md

File metadata and controls

54 lines (36 loc) · 821 Bytes

Server manager development

Install Python.

Install dependencies:

pip install -r app.requirements.txt -r dev.requirements.txt

Testing

Install test dependencies:

pip install -r tests/requirements.txt

Run tests:

pytest

Formatting

Format Python code:

black .
isort .

Format Terraform code:

cd terraform
terraform fmt

Update dependency pins

Run pip-tools compile:

pip-compile

Should be run with the same version of Python as the Lambda function's runtime (currently 3.12), eg python3.12 -m piptools compile.

Then remove Lambda runtime-provided packages from app.requirements.txt: urllib3, six, jmespath, python-dateutil, botocore, s3transfer, boto3.