chore: add pre-commit hook to enforce llama_stack.log logger

Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
This commit is contained in:
Mustafa Elbehery 2025-07-23 11:23:10 +02:00
parent cd8715d327
commit 313d0d809b
2 changed files with 190 additions and 0 deletions

View file

@ -145,6 +145,14 @@ repos:
echo;
exit 1;
} || true
- id: check-logger-usage
name: Check for proper logger usage
entry: python ./scripts/check-logger-usage.py
language: system
pass_filenames: false
require_serial: true
types: [python]
files: ^llama_stack/.*\.py$
ci:
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks