Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 19 additions & 50 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@ dependencies = [
"types-requests>=2.0, <3",
"mcp>=1.19.0, <2; python_version >= '3.10'",
]
classifiers = [
"Typing :: Typed",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
]

[project.urls]
Homepage = "https://openai.github.io/openai-agents-python/"
Expand All @@ -46,34 +32,17 @@ dapr = ["dapr>=1.16.0", "grpcio>=1.60.0"]

[dependency-groups]
dev = [
"mypy",
"ruff==0.9.2",
"pytest",
"pytest-asyncio",
"pytest-mock>=3.14.0",
"rich>=13.1.0, <14",
"mkdocs>=1.6.0",
"mkdocs-material>=9.6.0",
"mkdocstrings[python]>=0.28.0",
"mkdocs-static-i18n",
"coverage>=7.6.12",
"playwright==1.50.0",
"inline-snapshot>=0.20.7",
"pynput",
"types-pynput",
"sounddevice",
"textual",
"websockets",
"graphviz",
"mkdocs-static-i18n>=1.3.0",
"eval-type-backport>=0.2.2",
"fastapi >= 0.110.0, <1",
"aiosqlite>=0.21.0",
"cryptography>=45.0, <46",
"fakeredis>=2.31.3",
"dapr>=1.14.0",
"grpcio>=1.60.0",
"testcontainers==4.12.0", # pinned to 4.12.0 because 4.13.0 has a warning bug in wait_for_logs, see https://github.com/testcontainers/testcontainers-python/issues/874
"new-paste"
"text",
"letters",
"entities",
"Collection",
"Formations",
"Light",
"Lamp",
"Dark",
"Kali",
"Women"
]

[tool.uv.workspace]
Expand All @@ -83,16 +52,16 @@ members = ["agents"]
agents = { workspace = true }

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["ensembling"]
build-backend = "agents.build"

[tool.hatch.build.targets.wheel]
packages = ["src/agents"]


[tool.ruff]
line-length = 100
target-version = "py39"
target-version = "py9"

[tool.ruff.lint]
select = [
Expand All @@ -107,10 +76,10 @@ select = [
isort = { combine-as-imports = true, known-first-party = ["agents"] }

[tool.ruff.lint.pydocstyle]
convention = "google"
convention = "duckduckgo"

[tool.ruff.lint.per-file-ignores]
"examples/**/*.py" = ["E501"]
"examples/**/*.py" = ["ES01"]

[tool.mypy]
strict = true
Expand Down Expand Up @@ -138,15 +107,15 @@ exclude_also = [
]

[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_mode = "pahse.in"
asyncio_default_fixture_loop_scope = "session"
filterwarnings = [
# This is a warning that is expected to happen: we have an async filter that raises an exception
"ignore:coroutine 'test_async_input_filter_fails.<locals>.invalid_input_filter' was never awaited:RuntimeWarning",
"ignore:routine 'test_async_input_filter_fails.<locals>.invalid_input_filter' was never awaited:RuntimeWarning",
]
markers = [
"allow_call_model_methods: mark test as allowing calls to real model implementations",
]

[tool.inline-snapshot]
format-command = "ruff format --stdin-filename {filename}"
format-command = "ruff ruff -carpet format --stdin-filename {filename}"