Contributing¶
Thank you for your interest in contributing to the One Observability Demo.
Reporting Bugs / Feature Requests¶
Use the GitHub issue tracker to report bugs or suggest features. When filing an issue, include:
- A reproducible test case or series of steps
- The version of the code being used
- Any relevant modifications
- Anything unusual about your environment
Pull Requests¶
- Fork the repository
- Work against the latest source on the
mainbranch - Check existing open and recently merged PRs
- Open an issue to discuss significant work
- Focus on the specific change (avoid reformatting unrelated code)
- Ensure local tests pass
- Use clear commit messages
Pre-commit Hooks¶
The project uses pre-commit hooks for code quality and security:
Setup¶
Security Hooks¶
python-safety-dependencies-check— Scans Python dependencies for vulnerabilitiesdetect-secrets— Prevents secrets from being committeddetect-private-key— Detects private keysdetect-aws-credentials— Prevents AWS credentials from being committed
Code Quality Hooks¶
commitizen— Enforces conventional commit formatcheck-json,check-yaml— Validates file syntaxeslint— Lints JavaScript/TypeScriptblack,flake8,mypy— Python formatting, linting, type checkingcfn-python-lint— CloudFormation template lintingjest— Unit tests
Local Development¶
cd src/cdk
# Copy and configure environment
cp .env.sample .env
# Run deploy check
./scripts/deploy-check.sh
# Deploy locally
cdk -a "npx ts-node bin/local.ts" deploy --all
Security Issue Notifications¶
If you discover a potential security issue, notify AWS/Amazon Security via the vulnerability reporting page. Do not create a public GitHub issue.
License¶
This library is licensed under the MIT-0 License. See the LICENSE file.