-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (118 loc) · 2.94 KB
/
pyproject.toml
File metadata and controls
129 lines (118 loc) · 2.94 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[project]
name = "py-code-mode"
version = "0.18.1"
description = "Code mode for LLM agents - tools as Python SDK bindings via Jupyter execution"
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
authors = [
{ name = "actae0n" }
]
keywords = ["llm", "agents", "tools", "jupyter", "code-execution"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"pyyaml>=6.0",
"numpy>=1.26",
"sentence-transformers>=3.0",
"fastmcp>=2.0.0",
"jupyter-client>=8.6",
"filelock>=3.0",
]
[project.scripts]
py-code-mode-mcp = "py_code_mode.cli.mcp_server:main"
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"ruff>=0.8",
"mypy>=1.13",
]
jupyter = [
"nbclient>=0.10",
"nbformat>=5.10",
"ipykernel>=6.0",
]
chromadb = [
"chromadb>=0.5",
]
redis = [
"redis>=5.0",
]
mcp = [
"mcp>=1.0",
]
http = [
"aiohttp>=3.9",
]
container = [
"fastapi>=0.100",
"uvicorn>=0.20",
"httpx>=0.25",
"docker>=7.0",
"redis>=5.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/py_code_mode"]
[tool.hatch.build.targets.sdist]
include = ["src/py_code_mode"]
[tool.uv]
dev-dependencies = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-cov>=6.0",
"ruff>=0.8",
"pre-commit>=4.0",
"redis>=7.1.0",
"mcp[cli]>=1.24.0",
"aiohttp>=3.13.2",
"fastapi>=0.124.4",
"httpx>=0.28.1",
"uvicorn>=0.38.0",
"docker>=7.1.0",
"pytest-xdist>=3.8.0",
"testcontainers[redis]>=4.13.3",
"chromadb>=0.5",
"types-pyyaml>=6.0.12.20250915",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
norecursedirs = ["tests/future"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-n auto --dist loadgroup"
markers = [
"slow: Long-running tests (often subprocess/docker integration).",
"integration: Integration tests that may require external services (e.g. Redis).",
"docker: Tests that require Docker (typically xdist_group('docker')).",
"subprocess: Tests that use the SubprocessExecutor / kernel subprocess (typically xdist_group('subprocess')).",
"venv: Tests that touch venv caching/management (typically xdist_group('venv')).",
"deno: Tests that require Deno (DenoSandboxExecutor integration).",
]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
[tool.coverage.run]
source = ["src/py_code_mode"]
branch = true
omit = ["*/tests/*", "*/__pycache__/*"]
[tool.coverage.report]
fail_under = 60
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]