Thank you for your interest in contributing to knowledge-lora.
git clone https://github.com/cl4wb0rg/knowledge-lora.git
cd knowledge-lora
python -m venv .venv
source .venv/bin/activate
bash install.sh # handles CUDA 13.0 install order and flash-attn build
pip install ruff mypyRun the linter and type checker locally:
ruff check scripts/
ruff format scripts/
mypy scripts/ --ignore-missing-importsCI will fail if either tool reports errors.
- Python 3.11+ syntax throughout.
- Type hints on all public functions —
disallow_untyped_defs = trueis enforced. loggingfor all diagnostic output, never bareprint()in production paths.- Atomic writes: output files must be written to
.tmpfirst and renamed on success. - No secrets in code — credentials only via environment variables.
Please open a GitHub issue with:
- Python version and OS
- The exact command you ran
- The full error output
By contributing, you agree that your contributions are licensed under the Apache License 2.0.