-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (54 loc) · 1.62 KB
/
Copy pathpyproject.toml
File metadata and controls
65 lines (54 loc) · 1.62 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
[project]
name = "pglens"
# Version comes from the git tag via hatch-vcs; see [tool.hatch.version].
dynamic = ["version"]
description = "PostgreSQL MCP server for schema inspection, data exploration, and query execution."
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
dependencies = [
"asyncpg>=0.29",
# Lower bound: mcp 2.0 replaced mcp.server.fastmcp with mcp.server.mcpserver
# (FastMCP -> MCPServer, Context lost its ServerSession type parameter);
# mcp < 2 cannot import mcp_adapter.py at all.
# Upper bound: guard against the next API break landing silently.
"mcp>=2,<3",
"pglast>=7.13",
]
[project.scripts]
pglens = "pglens.__main__:main"
[dependency-groups]
dev = [
"asyncpg-stubs>=0.29",
"ty>=0.0.1a7",
"pytest>=8.0",
"pytest-asyncio>=0.24",
"ruff>=0.8",
"testcontainers[postgres]>=4.0",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
# Tag v1.2.0 -> version 1.2.0. Untagged commits get a dev version derived from
# the last tag, so a build never silently reuses a released version number.
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["src/pglens"]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
asyncio_default_test_loop_scope = "session"
[tool.ty.environment]
root = ["."]
[[tool.ty.overrides]]
include = ["tests/**"]
[tool.ty.overrides.rules]
not-subscriptable = "ignore"
unsupported-operator = "ignore"
not-iterable = "ignore"
invalid-argument-type = "ignore"