File tree Expand file tree Collapse file tree 3 files changed +71
-2
lines changed Expand file tree Collapse file tree 3 files changed +71
-2
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,27 @@ repos:
1212 - id : yapf
1313 args : [--in-place, --verbose]
1414 # Keep the same list from yapfignore here to avoid yapf failing without any inputs
15- exclude : ' (.buildkite|benchmarks|build|examples)/.*'
15+ exclude : |
16+ (?x)^(
17+ .buildkite|
18+ benchmarks|
19+ build|
20+ examples|
21+ tests
22+ )/.*$
1623 - repo : https://github.com/astral-sh/ruff-pre-commit
1724 rev : v0.11.7
1825 hooks :
1926 - id : ruff
2027 args : [--output-format, github, --fix]
2128 - id : ruff-format
22- files : ^(.buildkite|benchmarks|examples)/.*
29+ files : |
30+ (?x)^(
31+ .buildkite|
32+ benchmarks|
33+ examples|
34+ tests
35+ )/.*$
2336 - repo : https://github.com/crate-ci/typos
2437 rev : v1.34.0
2538 hooks :
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ ignore_patterns = [
5757 " benchmarks/**" ,
5858 " build/**" ,
5959 " examples/**" ,
60+ " tests/**" ,
6061 " vllm/collect_env.py" ,
6162]
6263
@@ -143,6 +144,7 @@ skip_glob = [
143144 " .buildkite/*" ,
144145 " benchmarks/*" ,
145146 " examples/*" ,
147+ " tests/*" ,
146148]
147149use_parentheses = true
148150skip_gitignore = true
Original file line number Diff line number Diff line change 1+ # This local pyproject file is part of the migration from yapf to ruff format.
2+ # It uses the same core rules as the main pyproject.toml file, but with the
3+ # following differences:
4+ # - ruff line length is overridden to 88
5+ # - deprecated typing ignores (UP006, UP035) have been removed
6+
7+ [tool .ruff ]
8+ line-length = 88
9+ exclude = [
10+ # External file, leaving license intact
11+ " examples/other/fp8/quantizer/quantize.py" ,
12+ " vllm/vllm_flash_attn/flash_attn_interface.pyi"
13+ ]
14+
15+ [tool .ruff .lint .per-file-ignores ]
16+ "vllm/third_party/**" = [" ALL" ]
17+ "vllm/version.py" = [" F401" ]
18+ "vllm/_version.py" = [" ALL" ]
19+
20+ [tool .ruff .lint ]
21+ select = [
22+ # pycodestyle
23+ " E" ,
24+ # Pyflakes
25+ " F" ,
26+ # pyupgrade
27+ " UP" ,
28+ # flake8-bugbear
29+ " B" ,
30+ # flake8-simplify
31+ " SIM" ,
32+ # isort
33+ " I" ,
34+ # flake8-logging-format
35+ " G" ,
36+ ]
37+ ignore = [
38+ # star imports
39+ " F405" , " F403" ,
40+ # lambda expression assignment
41+ " E731" ,
42+ # Loop control variable not used within loop body
43+ " B007" ,
44+ # f-string format
45+ " UP032" ,
46+ # Can remove once 3.10+ is the minimum Python version
47+ " UP007" ,
48+ ]
49+
50+ [tool .ruff .lint .isort ]
51+ known-first-party = [" vllm" ]
52+
53+ [tool .ruff .format ]
54+ docstring-code-format = true
You can’t perform that action at this time.
0 commit comments