-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (96 loc) · 2.37 KB
/
pyproject.toml
File metadata and controls
108 lines (96 loc) · 2.37 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[project]
name = "mcp-optimizer"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"aiosqlite>=0.22.1",
"alembic>=1.18.4",
"click>=8.3.2",
"datamodel-code-generator[http]>=0.56.1",
"httpx>=0.28.1",
"mcp[cli]>=1.27.0",
"numpy>=2.4.4",
"pydantic>=2.13.2",
"fastembed>=0.8.0",
"sqlalchemy>=2.0.49",
"structlog>=25.5.0",
"uvicorn[standard]>=0.44.0",
"watchfiles>=1.1.1",
"sqlite-vec>=0.1.9",
"tiktoken>=0.12.0",
"semver>=3.0.4",
]
[dependency-groups]
dev = [
"greenlet>=3.4.0",
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
"ruff>=0.15.11",
"ty>=0.0.31",
"pytest-cov>=7.1.0",
]
security = [
"bandit[toml]>=1.9.4",
"cyclonedx-bom>=7.3.0",
]
examples = [
"anthropic>=0.96.0",
"pydantic-ai>=1.57.0",
"matplotlib>=3.10.8",
"rich>=15.0.0",
]
offline-models = [
"optimum[onnxruntime]>=2.1.0",
"fastembed>=0.8.0",
"tiktoken>=0.12.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv.sources]
mcp-optimizer = { workspace = true }
[project.scripts]
mcpo = "mcp_optimizer.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/mcp_optimizer"]
[tool.ruff]
line-length = 100
target-version = "py313"
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
lint.ignore = []
exclude = ["src/mcp_optimizer/toolhive/api_models", "data"]
[tool.ty.src]
exclude = ["tests", "examples", "data"]
[tool.pytest.ini_options]
minversion = "8.0"
addopts = [
"-ra",
"--strict-config",
"-v",
"--cov=mcp_optimizer",
"--cov-report=term-missing",
]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.alembic]
# Directory where migration scripts are stored.
script_location = "%(here)s/migrations"
# template used to generate migration file names
file_template = "%%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s"
# timezone to use when rendering the date within the migration file as well as the filename.
timezone = "UTC"
# max length of characters to apply to the "slug" field
truncate_slug_length = "50"