Thanks for contributing. This guide is optimized for first-time contributors.
python3.11 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt -r requirements-dev.txt
export KEYNETRA_API_KEYS=devkeyStart the API locally:
keynetra serveRun all tests:
PYTHONPATH=. python3.11 -m pytest -qRun targeted tests:
PYTHONPATH=. python3.11 -m pytest -q tests/test_api.py- Keep changes small and focused
- Add tests for behavior changes
- Keep documentation in sync with code
- Prefer clear names over clever shortcuts
- Do not add unrelated refactors in the same PR
Formatting/linting tools used in this project:
blackisortruff
- Create a feature branch
- Implement change with tests
- Run test suite locally
- Update docs when behavior changes
- Open PR with clear summary:
- problem
- approach
- test evidence
When opening an issue, include:
- expected behavior
- actual behavior
- minimal reproducible request/payload
- logs/error output
- runtime info (Python version, OS)