Skip to content

Commit 09c1eb2

Browse files
Restore pyproject.toml (vllm-project#37)
1 parent 78b0513 commit 09c1eb2

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

pyproject.toml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
[build-system]
2+
# Should be mirrored in requirements-build.txt
3+
requires = [
4+
"cmake>=3.21",
5+
"ninja",
6+
"packaging",
7+
"setuptools >= 49.4.0",
8+
"torch == 2.3.0",
9+
"wheel",
10+
]
11+
build-backend = "setuptools.build_meta"
12+
13+
[tool.ruff]
14+
# Allow lines to be as long as 80.
15+
line-length = 80
16+
exclude = [
17+
# External file, leaving license intact
18+
"examples/fp8/quantizer/quantize.py"
19+
]
20+
21+
[tool.ruff.lint]
22+
select = [
23+
# pycodestyle
24+
"E",
25+
# Pyflakes
26+
"F",
27+
# pyupgrade
28+
# "UP",
29+
# flake8-bugbear
30+
"B",
31+
# flake8-simplify
32+
"SIM",
33+
# isort
34+
# "I",
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+
]
45+
46+
[tool.mypy]
47+
python_version = "3.8"
48+
49+
ignore_missing_imports = true
50+
check_untyped_defs = true
51+
follow_imports = "skip"
52+
53+
files = "vllm"
54+
# TODO(woosuk): Include the code from Megatron and HuggingFace.
55+
exclude = [
56+
"vllm/model_executor/parallel_utils/|vllm/model_executor/models/",
57+
# Ignore triton kernels in ops.
58+
'vllm/attention/ops/.*\.py$'
59+
]
60+
61+
[tool.codespell]
62+
ignore-words-list = "dout, te, indicies"
63+
skip = "./tests/prompts,./benchmarks/sonnet.txt"
64+
65+
[tool.isort]
66+
use_parentheses = true
67+
skip_gitignore = true

0 commit comments

Comments
 (0)