-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (67 loc) · 1.86 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (67 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[build-system]
requires = ["setuptools >= 77.0.3"]
build-backend = "setuptools.build_meta"
[project]
name = "stopwatch"
version = "0.1.0"
requires-python = ">=3.10,<4.0"
dependencies = [
"guidellm @ git+https://github.com/vllm-project/guidellm.git#af89787",
"modal~=1.1.3",
"pytest~=8.4.1",
"pytest-rerunfailures~=15.1",
"pytest-timeout~=2.4.0",
"pytest-xdist~=3.8.0",
"requests~=2.32.5",
]
authors = [
{name = "Jack Cook", email = "hello@jackcook.com"},
]
description = "A tool for benchmarking LLMs on Modal"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE.md"]
keywords = ["machine-learning", "llms", "vllm", "sglang", "tensorrt-llm"]
[project.scripts]
stopwatch = "stopwatch.cli:app"
[project.urls]
Homepage = "https://github.com/modal-labs/stopwatch"
Documentation = "https://github.com/modal-labs/stopwatch/blob/main/README.md"
Repository = "https://github.com/modal-labs/stopwatch.git"
[tool.ruff]
line-length = 88
indent-width = 4
exclude = ["build", "dist", "env", ".venv"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint]
ignore = [
# Various dumb rules related to docstrings
"D100",
"D104",
"D202",
"D203",
"D205",
"D212",
"PLC0415", # Allow imports that aren't at the top of the file
"PLR0913", # Allow functions with more than 5 arguments
"S113", # Allow requests without timeouts
"UP017", # Allow timezone.utc on the SGLang image, which uses Python 3.10
]
select = [
"ALL",
]
[tool.ruff.lint.extend-per-file-ignores]
"src/stopwatch/cli/*.py" = [
"T201", # Allow print statements in CLI
]
"src/stopwatch/llm_servers/*.py" = [
"N801", # Allow class names to be lowercase
"S104", # Allow binding to all interfaces
"S602", # Allow subprocess.Popen with shell=True
]
"tests/**/test_*.py" = [
"S101", # Allow assert statements in tests
"PLR2004", # Allow constant values in tests
]