[lint] improve ruff check (#11922)

Co-authored-by: Xiaoyu Zhang <35585791+BBuf@users.noreply.github.com>
This commit is contained in:
Liangsheng Yin
2025-10-22 11:32:50 +08:00
committed by GitHub
parent 590bc4b7a7
commit 9d61205dac
19 changed files with 73 additions and 31 deletions

View File

@@ -27,7 +27,9 @@ repos:
rev: v0.11.7
hooks:
- id: ruff
args: [--select=F401,F821, --fixable=F401]
args:
- --select=F401,F821
- --fix
files: ^(benchmark/|docs/|examples/|python/sglang/)
exclude: __init__\.py$|\.ipynb$|^python/sglang/srt/grpc/.*_pb2\.py$|^python/sglang/srt/grpc/.*_pb2_grpc\.py$|^python/sglang/srt/grpc/.*_pb2\.pyi$|^python/sglang/srt/grpc/.*_pb2_grpc\.pyi$
- repo: https://github.com/psf/black