-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (110 loc) · 2.61 KB
/
pyproject.toml
File metadata and controls
124 lines (110 loc) · 2.61 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
[project]
name = "mcp-pinot-server"
version = "0.1.0"
description = "A production-grade MCP server for Apache Pinot"
license = "Apache-2.0"
requires-python = ">=3.12"
dependencies = [
"mcp[cli]>=1.10.0",
"fastmcp>=0.1.0",
"pinotdb>=5.6.0",
"uvicorn[standard]>=0.34.0",
"python-dotenv>=1.0.1",
"httpx>=0.27.2",
"pandas>=2.2.3",
"requests>=2.32.3",
"rpds-py>=0.18.1",
"pydantic==2.12.5",
"pydantic-core==2.41.5",
"pyyaml>=6.0.1"
]
[project.scripts]
mcp-pinot = "mcp_pinot.server:main"
[project.urls]
Home = "http://github.com/startreedata/mcp-pinot"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-asyncio",
"pytest-mock",
"pytest-cov",
"ruff>=0.1.6",
]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["mcp_pinot"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
norecursedirs = ["lib", ".git", ".tox", "dist", "build", "*.egg"]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
]
[tool.ruff]
target-version = "py312"
line-length = 88
src = ["mcp_pinot"]
[tool.ruff.lint]
select = [
# Phase 1: Foundation rules
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"S", # bandit security
]
ignore = [
# Development necessities
"S104", # bind all interfaces (dev servers)
"S108", # temp files (testing)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # assert statements
"S105", # hardcoded passwords in test fixtures
"S106", # hardcoded passwords in fixtures
"S108", # temp files
]
"simple_query_builtin.py" = [
"S310", # URL open for demo/testing purposes
]
"examples/*" = [
"S310", # URL open for demo/testing purposes
]
"test_http_with_server.py" = [
"S310", # URL open for demo/testing purposes
]
"tests/test_http_live.py" = [
"S310", # URL open for testing purposes
]
"tests/test_service/*" = [
"S310", # URL open for integration testing
"S110", # try-except-pass for connection retries
]
[tool.ruff.lint.isort]
known-first-party = ["mcp_pinot"]
force-sort-within-sections = true
split-on-trailing-comma = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.uv.workspace]
members = [
"mcp-pinot",
]
[dependency-groups]
dev = [
"pytest>=8.3.5",
"pytest-asyncio>=0.26.0",
"pytest-cov>=6.1.1",
"pytest-mock>=3.14.0",
"ruff>=0.12.0",
]