-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (69 loc) · 1.81 KB
/
Copy pathpyproject.toml
File metadata and controls
79 lines (69 loc) · 1.81 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
[project]
name = "benchkit"
version = "0.1.0"
description = "Benchmark your local LLMs with real eval suites"
readme = "README.md"
requires-python = ">=3.11"
license = "Apache-2.0"
dependencies = [
"evalplus==0.3.1",
"httpx>=0.28.1",
"rich>=15.0.0",
"python-dotenv>=1.2.3",
"textual>=8.2.8",
]
[project.optional-dependencies]
# treejs-arena renders generated pages in headless Chromium. Install with
# `uv sync --extra browser`, then `uv run playwright install chromium`.
browser = ["playwright>=1.62.0"]
[project.scripts]
benchkit = "benchkit.cli:main"
[dependency-groups]
dev = ["pytest>=9.1.1", "pre-commit>=4.6.2", "ruff>=0.16.5"]
[build-system]
requires = ["setuptools>=84.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
include = ["benchkit*"]
[tool.setuptools.package-data]
benchkit = [
"answer_key_guard.ts",
"datasets/*.jsonl",
"datasets/*.csv",
"datasets/*.md",
"datasets/*.txt",
"git_surgery/**/*.sh",
"git_surgery/**/*.md",
"mc_viewer/dist/*",
"pi_package/*.json",
"templates/*.html",
"tui/*.tcss",
]
[tool.ruff]
line-length = 88
target-version = "py311"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # import sorting
"UP", # pyupgrade
"B", # bugbear
"C4", # comprehensions
"SIM", # simplifications
"RUF", # ruff-specific
]
ignore = [
"E501", # line length is the formatter's job
"RUF001", # the TUI leans on box-drawing and other unicode glyphs
"RUF003",
]
[tool.ruff.lint.per-file-ignores]
# Textual declares BINDINGS/COMMANDS as plain class-level lists by design.
"src/benchkit/tui/**" = ["RUF012"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"