-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (52 loc) · 1.78 KB
/
Copy pathpyproject.toml
File metadata and controls
60 lines (52 loc) · 1.78 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "postgres-aiops"
version = "0.10.3"
description = "Governed AI-ops for PostgreSQL DBA operations: slow-query RCA, bloat/vacuum & blocking-lock analysis with a built-in governance harness (audit, budget, undo, risk tiers)"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [{ name = "Wei Zhou", email = "zhouwei008@gmail.com" }]
dependencies = [
"psycopg[binary]>=3.1,<4.0",
"typer>=0.12,<1.0",
"rich>=13.0,<16.0",
"pyyaml>=6.0,<7.0",
"cryptography>=42.0",
"mcp[cli]>=2.0,<3.0",
]
[dependency-groups]
dev = [
"pytest>=8.0,<10.0",
"pytest-cov>=5.0,<8.0",
"ruff>=0.5,<1.0",
]
[project.scripts]
postgres-aiops = "postgres_aiops.cli:app"
postgres-aiops-mcp = "mcp_server.server:main"
[tool.hatch.build.targets.wheel]
packages = ["postgres_aiops", "mcp_server"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
[tool.ruff.lint.per-file-ignores]
# Vendored governance harness — kept faithful to its source; the exception
# names (PolicyDenied/BudgetExceeded) and a few long SQL/format lines are
# intentional and stable, so don't reflow them here.
"postgres_aiops/governance/*.py" = ["E501", "N818"]
# MCP server files are reflected by FastMCP/Pydantic; PEP 604 unions (X | None)
# crash on older mcp/pydantic, so they intentionally use Optional[X].
"mcp_server/**/*.py" = ["UP007", "UP045"]
# The MCP entry keeps an explicit Python-version guard even though the declared
# minimum is already 3.11.
"postgres_aiops/cli/_root.py" = ["UP036"]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"unit: Unit tests",
"integration: Integration tests (require a live PostgreSQL cluster)",
]