AWS Lambda function for document processing (privacy, metadata stripping, etc.).
# From project root
./run-tests.shThis builds the test Docker image with all required system dependencies (including pdfcpu for PDF processing) and runs the complete test suite in the same environment used in CI/CD, ensuring consistency between local development and deployment.
You can test the Lambda locally using Docker:
script/serverwill start the server and
script/upload document_cleanser_lambda/test-event.json
will submit a valid Lambda event payload to your handler (see AWS docs for examples).
Output will be at the same filename with .output.json appended.
Install and run pre-commit hooks to ensure code quality:
pip install pre-commit
pre-commit install
pre-commit run --all-filesDependencies should be managed by renovate (see renovate.json).
If you need to update dependencies, run poetry update; see pyproject.toml
Ensure all tests pass locally before opening a PR via ./run-tests.sh
Follow repo and code style guidelines.
Document new environment variables or requirements in the README.
- Changes to the
mainbranch are deployed to staging. - Creating a new Github version deploys to production.