[CI] Add pre-commit check for patch logger (#7446)
### What this PR does / why we need it?
See https://github.com/vllm-project/vllm-ascend/pull/7402, pre-commit
hook will forbid init_logger(__name__) in vllm_ascend patch modules
- vLLM version: v0.17.0
- vLLM main:
8a680463fa
---------
Signed-off-by: wangli <wangli858794774@gmail.com>
This commit is contained in:
@@ -91,6 +91,12 @@ repos:
|
||||
language: python
|
||||
types: [python]
|
||||
pass_filenames: false
|
||||
- id: check-logger
|
||||
name: Forbid init_logger(__name__) in vllm_ascend modules
|
||||
entry: tools/check_logger.sh
|
||||
language: script
|
||||
types: [python]
|
||||
pass_filenames: false
|
||||
# Keep `suggestion` last
|
||||
- id: suggestion
|
||||
name: Suggestion
|
||||
|
||||
Reference in New Issue
Block a user