-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (65 loc) · 2.56 KB
/
Copy pathpyproject.toml
File metadata and controls
76 lines (65 loc) · 2.56 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "kv-cache-analyzer"
version = "0.1.0"
description = "Analyze LLM request logs to find KV cache optimization opportunities"
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.11"
keywords = ["llm", "inference", "kv-cache", "vllm", "optimization", "observability"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"typer>=0.12",
"rich>=13.0",
]
[project.optional-dependencies]
tiktoken = ["tiktoken>=0.7"]
hf = ["transformers>=4.40"]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.4",
"mypy>=1.10",
# Security scanning
"pip-audit>=2.7",
"bandit[toml]>=1.7",
]
[project.scripts]
kv-cache-analyzer = "kv_cache_analyzer.cli:main"
[project.urls]
Homepage = "https://github.com/bs258q/kv-cache-analyzer"
Issues = "https://github.com/bs258q/kv-cache-analyzer/issues"
Discussions = "https://github.com/bs258q/kv-cache-analyzer/discussions"
[tool.hatch.build.targets.wheel]
packages = ["src/kv_cache_analyzer"]
# ── pytest ────────────────────────────────────────────────────────────────────
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short"
# ── ruff (linting + formatting) ───────────────────────────────────────────────
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
ignore = ["E501"]
# ── bandit (static security analysis) ────────────────────────────────────────
[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B101"] # assert statements are fine in test code
# ── mypy ──────────────────────────────────────────────────────────────────────
[tool.mypy]
python_version = "3.11"
strict = false
ignore_missing_imports = true