-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (73 loc) · 2.37 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (73 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "opik-mcp"
dynamic = ["version"]
description = "Model Context Protocol server for Opik (Comet's LLM observability platform)."
readme = "README.md"
requires-python = ">=3.13"
license = { text = "Apache-2.0" }
authors = [{ name = "Comet ML" }]
dependencies = [
"mcp[cli]>=1.27,<2",
"httpx>=0.28",
"httpx-sse>=0.4",
"pydantic>=2.7",
"pydantic-settings>=2.5",
"sentry-sdk>=2,<3",
"uvicorn>=0.30",
]
[project.optional-dependencies]
dev = [
"anyio>=4.13",
"asgi-lifespan>=2.1",
"mypy>=1.13",
"pytest>=8",
"respx>=0.21",
"ruff>=0.7",
# Reference implementation of the agentskills.io spec. Used to validate the
# authored skills and to read their frontmatter when building the published
# pack, so our reading of a skill is identical to an agent's. Pinned to the
# 0.1.x line: a behaviour change there changes what CI accepts and what ships.
"skills-ref>=0.1.1,<0.2",
]
[project.scripts]
opik-mcp = "opik_mcp.__main__:main"
# Version comes from a generated, git-ignored file (`make version` / CI writes it;
# version.txt holds only MAJOR.MINOR). `artifacts` force-includes it in the
# sdist/wheel despite .gitignore, so building from an sdist resolves the version.
[tool.hatch.version]
path = "src/opik_mcp/_version.py"
[tool.hatch.build]
artifacts = ["src/opik_mcp/_version.py"]
[tool.hatch.build.targets.wheel]
packages = ["src/opik_mcp"]
[tool.hatch.build.targets.sdist]
include = ["/src", "/README.md"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
line-length = 100
target-version = "py313"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "RUF"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.13"
strict = true
warn_unreachable = true
warn_redundant_casts = true
# `scripts/` is otherwise unchecked, but the pack builder produces a public
# artifact, so it is held to the same bar as the package.
files = ["src", "tests", "scripts/build_skills_pack.py"]
[[tool.mypy.overrides]]
module = ["mcp.shared.memory"]
ignore_missing_imports = true
# The agentskills.io reference library ships no py.typed marker. It is a
# dev-only dependency used to validate skills and read their frontmatter.
[[tool.mypy.overrides]]
module = ["skills_ref", "skills_ref.*"]
ignore_missing_imports = true