-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (72 loc) · 1.82 KB
/
pyproject.toml
File metadata and controls
82 lines (72 loc) · 1.82 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
[project]
name = "mcp-execution"
version = "2.0.0"
description = "Python implementation of the breakthrough pattern from Anthropic's 'Code Execution with MCP' that reduces token usage by 98.7%"
readme = "README.md"
authors = [
{ name = "Ian Philpot", email = "ian.philpot@microsoft.com" }
]
requires-python = ">=3.11"
dependencies = [
"mcp>=1.0.0",
"pydantic>=2.0.0",
"aiofiles>=23.0.0",
]
[project.optional-dependencies]
discovery = [
"anthropic>=0.28.0",
]
dev = [
"black>=24.0.0",
"mypy>=1.8.0",
"ruff>=0.2.0",
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"types-aiofiles>=23.0.0",
"anthropic>=0.28.0",
]
[project.scripts]
mcp-exec = "runtime.harness:main"
mcp-generate = "runtime.generate_wrappers:main"
mcp-generate-discovery = "runtime.generate_test_params:main"
mcp-discover = "runtime.discover_schemas:main"
[build-system]
requires = ["uv_build>=0.9.5,<0.10.0"]
build-backend = "uv_build"
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
follow_imports = "normal"
no_implicit_reexport = true
[[tool.mypy.overrides]]
module = "anthropic.*"
ignore_missing_imports = true
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
ignore = ["N815"] # Allow mixedCase variable names for config compatibility
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
pythonpath = ["src"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[dependency-groups]
dev = [
"types-aiofiles>=25.1.0.20251011",
]