-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (81 loc) · 2.77 KB
/
Copy pathpyproject.toml
File metadata and controls
94 lines (81 loc) · 2.77 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "kernel_zoo"
version = "0.1.0"
description = "Dynamic leaderboard and benchmark platform for LLM GPU kernels"
requires-python = ">=3.11"
readme = "README.md"
license = { text = "MIT" }
dependencies = [
"jsonschema[format]>=4.21",
"pyyaml>=6.0",
# Upper bound: numpy >=2.2 ships inline type stubs using PEP 695 `type`
# statements (Python 3.12+ syntax), which mypy cannot parse when targeting
# python_version = "3.11". Pin below 2.2 so CI type-checking stays green
# on both supported interpreters (3.11 and 3.12).
"numpy>=1.26,<2.2",
"fastapi>=0.110",
"uvicorn[standard]>=0.27",
"python-multipart>=0.0.9",
]
[project.scripts]
kernel_zoo-server = "kernel_zoo.cli.server:main"
kernel_zoo-validate-package = "kernel_zoo.cli.validate_package:main"
kernel_zoo-indexer-now = "kernel_zoo.cli.indexer_now:main"
kernel_zoo-runner = "kernel_zoo.runner.cli:main"
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=4.1",
"ruff>=0.5",
"mypy>=1.10",
"openapi-spec-validator>=0.7",
"pytest-asyncio>=0.23",
"types-pyyaml>=6.0",
"types-jsonschema>=4.0",
"httpx>=0.27",
]
[tool.setuptools]
packages = ["kernel_zoo", "kernel_zoo.server", "kernel_zoo.cli", "kernel_zoo.runner"]
[tool.setuptools.package-data]
"kernel_zoo.server" = ["static/webui/*"]
[tool.ruff]
line-length = 100
target-version = "py311"
# Exclude: example kernel package (out of tooling scope) and SDD specs/plans
# (illustrative prose whose embedded Python snippets are not project source).
extend-exclude = ["docs/examples", "docs/superpowers"]
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "SIM", "RUF"]
ignore = ["E501"] # line length handled by formatter
[tool.ruff.lint.flake8-bugbear]
# FastAPI route handlers use `Form(...)`, `File(...)`, `Body(...)` as default
# arguments — this is the framework's canonical, documented idiom (the call
# returns a parameter declaration, not a per-request mutable). Ruff's B008
# default allowlist covers `Depends`/`Query`/`Path`/etc. but not the form/file
# markers, so extend it for the same reason.
extend-immutable-calls = [
"fastapi.Form",
"fastapi.File",
"fastapi.Body",
]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.11"
strict = true
files = ["kernel_zoo", "tools", "tests"]
exclude = ["docs/examples/"]
[[tool.mypy.overrides]]
module = ["numpy.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["fastapi.*", "starlette.*", "uvicorn.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --strict-markers"
asyncio_mode = "auto"
markers = ["e2e: end-to-end tests spawning real server/runner subprocesses"]