-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
173 lines (159 loc) · 5.2 KB
/
pyproject.toml
File metadata and controls
173 lines (159 loc) · 5.2 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[project]
name = "dataing"
version = "1.20.0"
description = "Autonomous Data Quality Investigation - Community Edition"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "Apache-2.0" }
authors = [{ name = "dataing team" }]
dependencies = [
"bond-agent>=0.1.2",
"fastapi[standard]>=0.109.0",
"uvicorn[standard]>=0.27.0",
"pydantic[email]>=2.5.0",
"pydantic-ai>=0.0.14",
"sqlalchemy>=2.0.0",
"sqlglot>=20.0.0",
"anthropic>=0.18.0",
"structlog>=24.1.0",
"opentelemetry-api>=1.22.0",
"opentelemetry-sdk>=1.22.0",
"opentelemetry-instrumentation-fastapi>=0.43b0",
"opentelemetry-exporter-otlp-proto-http>=1.22.0",
"asyncpg>=0.29.0",
"trino>=0.327.0",
"pyyaml>=6.0.1",
"jinja2>=3.1.3",
"httpx>=0.26.0",
"mcp>=1.0.0",
"duckdb>=0.9.0",
"cryptography>=41.0.0",
"polars>=1.36.1",
"faker>=40.1.0",
"bcrypt>=5.0.0",
"pyjwt>=2.10.1",
"pytest-asyncio>=1.3.0",
# Bond agent runtime dependencies
"qdrant-client>=1.7.0",
"sentence-transformers>=2.2.0",
"temporalio>=1.7.1",
"rfc8785>=0.1.4",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"ruff>=0.2.0",
"mypy>=1.8.0",
"testcontainers>=3.7.0",
"respx>=0.20.2",
]
docs = [
"mkdocs-material>=9.5.0",
"mkdocstrings[python]>=0.24.0",
"mkdocs-mermaid2-plugin>=1.1.0",
]
demo = [
"polars>=0.20.0",
"faker>=22.0.0",
"pyarrow>=15.0.0",
"duckdb>=0.9.0",
"jupyterlab>=4.0.0",
# SDK, CLI, and notebook packages for demo/testing
"dataing-sdk",
"dataing-cli",
"dataing-notebook[server,keyring,graph]",
"jupyterlab-dataing",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["python-packages/dataing/src/dataing"]
[tool.mypy]
python_version = "3.11"
mypy_path = ["python-packages/dataing/src", "python-packages/dataing-ee/src"]
files = ["python-packages/dataing/src/dataing", "python-packages/dataing-ee/src/dataing_ee"]
namespace_packages = true
explicit_package_bases = true
# Strict mode flags (equivalent to --strict but with SQLAlchemy-compatible settings)
warn_unused_configs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
# Disabled due to complex decorator typing with audited/require_feature decorators
disallow_untyped_decorators = false
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
extra_checks = true
# SQLAlchemy requires allowing subclassing from DeclarativeBase (typed as Any)
disallow_subclassing_any = false
disallow_any_generics = true
ignore_missing_imports = true
plugins = ["pydantic.mypy", "sqlalchemy.ext.mypy.plugin"]
[[tool.mypy.overrides]]
module = ["dataing.models", "dataing.models.*", "dataing_ee.models", "dataing_ee.models.*"]
# SQLAlchemy models need relaxed generic constraints for JSONB columns
disallow_any_generics = false
[[tool.mypy.overrides]]
module = [
"dataing.entrypoints.mcp.*",
"dataing.entrypoints.mcp.server",
"*.entrypoints.mcp.server",
"*.mcp.server",
]
# MCP library decorators don't have type stubs
disallow_untyped_decorators = false
disallow_untyped_calls = false
[[tool.mypy.overrides]]
module = ["dataing.sdk.magic"]
# IPython is optional - imports may or may not succeed depending on environment
warn_unused_ignores = false
disallow_untyped_decorators = false
[tool.ruff]
target-version = "py311"
line-length = 100
src = ["python-packages/dataing/src", "python-packages/dataing-ee"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"D", # pydocstyle
]
ignore = ["D100", "D104"]
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = ["D101", "D102", "D103", "D107"]
"scripts/*" = ["D103"]
".flow/bin/*" = ["D103"]
# Client packages support Python 3.10, need version blocks for tomllib
"python-packages/dataing-cli/src/dataing_cli/config.py" = ["UP036"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
asyncio_mode = "auto"
pythonpath = [".", "python-packages/dataing/src", "python-packages/dataing-ee/src", "python-packages/dataing/tests", "python-packages/dataing-ee/tests", "python-packages/dataing-sdk/src", "python-packages/dataing-notebook/src"]
testpaths = ["python-packages/dataing/tests", "python-packages/dataing-ee/tests"]
addopts = "-v --import-mode=importlib --cov=python-packages/dataing/src/dataing --cov=python-packages/dataing-ee/src/dataing_ee --cov-report=term-missing -m 'not integration'"
markers = [
"integration: tests requiring a running database (deselected by default)",
]
[dependency-groups]
dev = [
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
]
[tool.uv.sources]
dataing-sdk = { path = "python-packages/dataing-sdk", editable = true }
dataing-cli = { path = "python-packages/dataing-cli", editable = true }
dataing-notebook = { path = "python-packages/dataing-notebook", editable = true }
jupyterlab-dataing = { path = "frontend/jupyterlab-dataing", editable = true }