-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
206 lines (183 loc) · 6.17 KB
/
pyproject.toml
File metadata and controls
206 lines (183 loc) · 6.17 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 = ["setuptools>=68", "wheel", "setuptools-git-versioning>=2.0,<3"]
build-backend = "setuptools.build_meta"
[tool.uv.workspace]
members = [
"libraries/microsoft-agents-a365-notifications",
"libraries/microsoft-agents-a365-observability-core",
"libraries/microsoft-agents-a365-observability-extensions-langchain",
"libraries/microsoft-agents-a365-observability-extensions-openai",
"libraries/microsoft-agents-a365-observability-extensions-semantickernel",
"libraries/microsoft-agents-a365-observability-extensions-agentframework",
"libraries/microsoft-agents-a365-runtime",
"libraries/microsoft-agents-a365-tooling",
"libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry",
"libraries/microsoft-agents-a365-tooling-extensions-openai",
"libraries/microsoft-agents-a365-tooling-extensions-semantickernel",
"libraries/microsoft-agents-a365-tooling-extensions-agentframework",
"libraries/microsoft-agents-a365-tooling-extensions-googleadk",
"libraries/microsoft-agents-a365-observability-hosting",
]
exclude = [
".",
"samples/*",
"tests/*"
]
[tool.uv.sources]
microsoft-agents-a365-notifications = { workspace = true }
microsoft-agents-a365-observability-core = { workspace = true }
microsoft-agents-a365-observability-extensions-agentframework = { workspace = true }
microsoft-agents-a365-observability-extensions-langchain = { workspace = true }
microsoft-agents-a365-observability-extensions-openai = { workspace = true }
microsoft-agents-a365-observability-extensions-semantickernel = { workspace = true }
microsoft-agents-a365-observability-hosting = { workspace = true }
microsoft-agents-a365-runtime = { workspace = true }
microsoft-agents-a365-tooling = { workspace = true }
microsoft-agents-a365-tooling-extensions-agentframework = { workspace = true }
microsoft-agents-a365-tooling-extensions-azureaifoundry = { workspace = true }
microsoft-agents-a365-tooling-extensions-googleadk = { workspace = true }
microsoft-agents-a365-tooling-extensions-openai = { workspace = true }
microsoft-agents-a365-tooling-extensions-semantickernel = { workspace = true }
# Development dependencies for the entire workspace
[tool.uv]
dev-dependencies = [
"pytest",
"pytest-asyncio",
"pytest-mock",
"ruff",
"python-dotenv",
"openai",
"agent-framework-azure-ai",
"azure-identity",
"openai-agents",
]
# Override semantic-kernel's azure-ai-projects constraint to allow 2.x
# semantic-kernel 1.39.3 constrains azure-ai-projects~=1.0.0b12 but this repo needs >=2.0.0b1
# The functionality is compatible; only the version constraint was tightened
override-dependencies = [
"azure-ai-projects >= 2.0.0b1",
]
# Centralized version constraints for all external dependencies
# Individual package pyproject.toml files declare dependencies by name only (no version)
# uv applies these constraints during dependency resolution
constraint-dependencies = [
# --- Observability (OpenTelemetry) ---
"opentelemetry-api >= 1.36.0",
"opentelemetry-sdk >= 1.36.0",
"opentelemetry-exporter-otlp >= 1.36.0",
"opentelemetry-exporter-otlp-proto-grpc >= 1.36.0",
"opentelemetry-instrumentation >= 0.47b0",
# --- Azure Services ---
"azure-ai-agents >= 1.0.0b251001",
"azure-ai-projects >= 2.0.0b1",
"azure-identity >= 1.12.0",
"azure-monitor-ingestion >= 1.0.0",
"azure-monitor-opentelemetry-exporter >= 1.0.0b39",
# --- AI Frameworks ---
"agent-framework-azure-ai >= 1.0.0b251114",
"langchain >= 0.1.0",
"langchain-core >= 0.1.0",
"openai-agents >= 0.2.6",
"semantic-kernel >= 1.39.3",
"google-adk >= 1.0.0",
# --- Microsoft Agents SDK ---
"microsoft-agents-activity >= 0.4.0",
"microsoft-agents-hosting-core >= 0.4.0",
# --- Data Validation & Utilities ---
"aiohttp >= 3.8.0",
"asyncio-throttle >= 1.0.0",
"httpx >= 0.27.0",
"pydantic >= 2.0.0",
"PyJWT >= 2.8.0",
"typing-extensions >= 4.0.0",
# --- Development & Testing ---
"black >= 23.0.0",
"mypy >= 1.0.0",
"openai >= 1.0.0",
"pytest >= 7.0.0",
"pytest-asyncio >= 0.21.0",
"pytest-cov>=7.0.0",
"pytest-mock >= 3.10.0",
"python-dotenv >= 1.0.0",
"ruff >= 0.1.0",
]
# Test configuration
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
"-v",
"--tb=short",
"--strict-markers",
"--strict-config",
]
testpaths = ["tests"]
markers = [
"unit: Unit tests (fast, mocked)",
"integration: Integration tests (slow, real services)",
]
[tool.ruff]
# Set the maximum line length to 100.
line-length = 100
target-version = "py311"
preview = true
[tool.ruff.lint]
preview = true
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"CPY",
]
ignore = [
"E501", # Line too long, handled by formatter
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.lint.flake8-copyright]
# Require this exact copyright header (matches CLAUDE.md specification)
notice-rgx = "# Copyright \\(c\\) Microsoft Corporation\\.\\r?\\n# Licensed under the MIT License\\."
# (optional) ensure all files are checked regardless of size
min-file-size = 1
[tool.ruff.lint.per-file-ignores]
# Tests can use magic values, assertions, and imports
"tests/*" = ["PLR2004", "S101", "TID252", "B903"]
"samples/*" = ["B903"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"