mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-27 14:38:49 +00:00
chore: add pre-commit hook to enforce llama_stack.log logger
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
This commit is contained in:
parent
cd8715d327
commit
313d0d809b
2 changed files with 190 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue