Pre commit hook leveraging local LLMs for software quality assurance.
- pre-commit for setting up the hook
- ollama as the local LLM model registry
- ollama python client to interact from within the hook with a LLM
Add this to your .pre-commit-config.yaml file
repos:
- repo: https://github.com/anwielts/local-sqa-llm
rev: v0.0.1-alpha
hooks:
- id: local-sqa-llm
args: [TBD]
Per default the LLM output will be printed to the console.
TBD
Structure heavily inspired by version-checker and his post about creating one's own pre-commit hook