Li Wang
c7446438a9
[1/N][CI] Move linting system to pre-commits hooks (#1256)
### What this PR does / why we need it?
Follow vllm-project/vllm lint way:
https://github.com/vllm-project/vllm/blob/main/.pre-commit-config.yaml
Enable pre-commit to avoid some low level error AMAP.
This pr is one step of #1241, The purpose is make linting system more
clear and convenient, on this step, Mainly did the following things:
yapf, actionlint, ruff, typos, isort, mypy, png-lint, signoff-commit,
enforce-import-regex-instead-of-re.
TODO:
- clang-format(check for csrc with google style)
need clean code, disable for now
- pymarkdown
need clean code, disable for now
- shellcheck
need clean code, disable for now
### Does this PR introduce _any_ user-facing change?
Only developer UX change:
https://vllm-ascend--1256.org.readthedocs.build/en/1256/developer_guide/contributing.html#run-lint-locally
```
pip install -r requirements-lint.txt && pre-commit install
bash format.sh
```
### How was this patch tested?
CI passed with new added/existing test.
Co-authored-by: Yikun [yikunkero@gmail.com](mailto:yikunkero@gmail.com)
Co-authored-by: wangli
[wangli858794774@gmail.com](mailto:wangli858794774@gmail.com)
- vLLM version: v0.9.1
- vLLM main:
https://github.com/vllm-project/vllm/commit/5358cce5ffbd4011f8fea2188995a249b43b8bfe
---------
Signed-off-by: wangli <wangli858794774@gmail.com>
2025-07-10 14:17:15 +08:00
..
2025-07-10 14:06:49 +08:00
2025-06-11 16:33:11 +08:00
2025-07-10 14:17:15 +08:00
2025-06-27 09:14:43 +08:00
2025-07-10 14:17:15 +08:00
2025-04-22 08:57:25 +08:00
2025-07-10 14:17:15 +08:00
2025-06-07 16:46:58 +08:00
2025-07-10 14:17:15 +08:00
2025-07-09 08:52:24 +08:00
2025-07-02 17:42:53 +08:00
2025-07-07 22:36:03 +08:00
2025-05-23 14:25:46 +08:00
2025-07-10 14:17:15 +08:00
2025-05-14 19:49:09 +08:00
2025-07-04 17:54:33 +08:00
2025-07-09 08:52:24 +08:00
2025-07-03 22:21:42 +08:00
2025-07-10 12:07:05 +08:00