-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (90 loc) · 2.8 KB
/
pyproject.toml
File metadata and controls
99 lines (90 loc) · 2.8 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "queryargus"
version = "0.0.0"
description = "Autonomous data quality agent for Cosmos DB (MongoDB API)."
readme = "README.md"
requires-python = ">=3.12"
authors = [{ name = "Ching-En Lin" }]
keywords = ["cosmos-db", "mongodb", "data-quality", "agent", "llm", "audit"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Topic :: Database",
]
dependencies = [
"pydantic>=2.6,<3",
"typer>=0.12,<1",
"pymongo>=4.6,<5",
"azure-identity>=1.15,<2",
"msal>=1.28,<2",
"requests>=2.31,<3",
"google-genai>=0.3,<1",
"psycopg2-binary>=2.9,<3",
"cachetools>=5.3,<6",
"python-dotenv>=1,<2",
]
[project.optional-dependencies]
api = [
"fastapi>=0.110,<1",
"uvicorn>=0.27,<1",
]
eval = [
# LLM-judged prompt regression layer (tests/prompt_regression/llm_judge).
# Heavy dep — kept out of the default install. Required by the
# ``prompt_regression_llm`` pytest marker.
"deepeval>=1.0,<3",
# deepeval 2.x imports `langchain` at module load (via its OpenAI model
# adapter) but only declares `langchain-classic` as a hard dep, so the
# bare meta-package must be pinned explicitly. Drop this once deepeval
# cleans up the import.
# Must be <1.0 because deepeval 2.x imports `langchain.schema`, removed in 1.0.
"langchain>=0.3,<1",
]
dev = [
"pytest>=8,<9",
"pytest-cov>=5,<6",
"pytest-mock>=3.12,<4",
"mongomock>=4.1,<5",
"freezegun>=1.4,<2",
"ruff>=0.5,<1",
"mypy>=1.10,<2",
"types-cachetools",
"types-requests",
]
[project.scripts]
queryargus = "queryargus.cli.main:app"
[project.urls]
Repository = "https://github.com/ChingEnLin/QueryArgus"
Issues = "https://github.com/ChingEnLin/QueryArgus/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/queryargus"]
[tool.ruff]
line-length = 120
target-version = "py312"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"BLE", # flake8-blind-except
"B", # flake8-bugbear
"UP", # pyupgrade
"SIM", # flake8-simplify
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "E501"]
"src/queryargus/agent/prompts.py" = ["E501"]
"src/queryargus/agent/evaluation/eval_prompts.py" = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --strict-markers -m 'not prompt_regression and not prompt_regression_llm'"
markers = [
"prompt_regression: opt-in deterministic prompt/rule regression suite (run with -m prompt_regression)",
"prompt_regression_llm: opt-in LLM-judged prompt regression suite — costs tokens (run with -m prompt_regression_llm)",
]