-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
206 lines (189 loc) · 4.96 KB
/
Copy pathpyproject.toml
File metadata and controls
206 lines (189 loc) · 4.96 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "qtype"
version = "0.1.0"
description = "DSL for Generative AI Prototyping"
authors = [{ name="Lou Kratz", email="lou.kratz+qtype@bazaarvoice.com" }]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"cachetools>=6.2.1",
"jsonschema>=4.24.0",
"pydantic>=2.12.4",
"pyyaml>=6.0.2",
"python-dotenv>=1.0.0",
"openai>=1.93.0",
"fsspec>=2025.5.1",
"mkdocs-awesome-pages-plugin>=2.10.1",
"pip-system-certs>=5.2",
"openapi3-parser>=1.1.21",
"pydantic-yaml>=1.6.0",
"google-cloud-aiplatform>=1.120.0"
]
license = "APACHE-2.0"
license-files = ["LICEN[CS]E*"]
[project.urls]
Homepage = "https://github.com/bazaarvoice/qtype"
[project.optional-dependencies]
interpreter = [
"aiostream>=0.7.1",
"arize>=8.0.0",
"arize-phoenix-otel>=0.12.1",
"arize-otel>=0.11.0",
"boto3>=1.34.0",
"datasets>=4.4.1",
"diskcache>=5.6.3",
"docling>=2.55.1",
"docx2txt>=0.9",
"fastapi>=0.116.1",
"jsonpath-ng>=1.7.0",
"langfuse>=3.9.0",
"llama-index-embeddings-bedrock>=0.5.2",
"llama-index-embeddings-openai>=0.3.1",
"llama-index-llms-bedrock-converse>=0.10.5",
"llama-index-llms-bedrock>=0.3.8",
"llama-index-llms-vertex>=0.6.1",
"llama-index-postprocessor-bedrock-rerank>=0.5.1",
"llama-index-readers-huggingface-fs>=0.4.1",
"llama-index-vector-stores-qdrant>=0.8.6",
"llama-index>=0.12.45",
"openinference-instrumentation-llama-index>=4.3.4",
"opensearch-py>=2.7.0",
"opentelemetry-exporter-otlp>=1.35.0",
"opentelemetry-sdk>=1.35.0",
"pandas>=2.2.3",
"psycopg2-binary>=2.9.10",
"pyarrow>=21.0.0",
"pyathena[sqlalchemy]>=3.18.0",
"python-magic>=0.4.27",
"s3fs>=2025.7.0",
"sqlalchemy>=2.0.42",
"uvicorn[standard]>=0.35.0",
]
mcp = [
"httpx>=0.28.1",
"mcp[cli]>=1.25.0",
"tantivy>=0.25.1",
]
[dependency-groups]
dev = [
"arize-phoenix>=12.35.0",
"boto3>=1.34.0",
"coverage>=7.0.0",
"ipython>=8.37.0",
"isort>=5.13.0",
"mermaid-py>=0.8.0",
"mkdocs-awesome-pages-plugin>=2.10.1",
"mkdocs-material>=9.7.1",
"mkdocs>=1.6.1",
"mkdocstrings-python>=1.16.12",
"mkdocstrings>=0.30.0",
"networkx>=3.4.2",
"pandas-stubs>=2.3.2.250827",
"pkginfo>=1.12.1.2",
"pre-commit>=3.6.0",
"pymdown-extensions>=10.20",
"pytest-asyncio>=1.2.0",
"pytest-cov>=6.0.0",
"pytest>=8.4.1",
"ruff>=0.1.0",
"types-cachetools>=6.2.0.20250827",
"types-networkx>=3.5.0.20250901",
"types-PyYAML>=6.0.2",
"types-requests>=2.32.4.20250809",
"ty>=0.0.8",
]
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.0.0",
]
[tool.uv]
# Install dev dependencies by default when running uv sync
default-groups = ["dev"]
# Install the package itself in editable mode
package = true
# Use highest resolution strategy for dependencies
resolution = "highest"
# Compile bytecode for faster subsequent runs
compile-bytecode = true
[project.scripts]
qtype = "qtype.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["qtype"]
[tool.hatch.build.targets.wheel.force-include]
"docs" = "qtype/docs"
"examples" = "qtype/examples"
"schema" = "qtype/schema"
# Tool configurations
[tool.ruff]
line-length = 79
target-version = "py310"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = ["E501"] # Let ruff handle line length
[tool.isort]
line_length = 79
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
# Note: ty will show references to .venv in error contexts when reporting
# type issues with imported external libraries. This is expected behavior.
[tool.ty.environment]
root = ["."]
[tool.ty.src]
include = ["qtype/**"]
[tool.coverage.run]
source = ["qtype"]
omit = [
"qtype/commands/*",
"qtype/interpreter/*", # TODO: expand coverage here.
"qtype/*.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
show_missing = true
precision = 2
[tool.coverage.html]
directory = "htmlcov"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--verbose",
"--tb=short",
"-ra",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"network: marks tests as requiring network access",
"asyncio: marks tests as async tests using asyncio",
]
# Configure pytest-asyncio to automatically detect async tests
asyncio_mode = "auto"