dracull-agent / pyproject.toml
sitcod3's picture
Dracull agent backend: aiohttp + Playwright, auth gate, port 7860
9fa7eea verified
Raw History Blame Contribute Delete
1.88 kB
[project]
name = "browser-automation-agent"
version = "0.1.0"
description = "Browser Automation Agent with Playwright, PydanticAI, and LangGraph"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"playwright>=1.45.0",
"pydantic-ai>=0.0.18",
"langgraph>=0.2.0",
"langchain-core>=0.3.0",
"litellm>=1.50.0",
"pydantic>=2.8.0",
"pydantic-settings>=2.4.0",
"python-dotenv>=1.0.0",
"asyncio-mqtt>=0.16.0",
"websockets>=12.0",
"aiohttp>=3.9.0",
"structlog>=24.0.0",
"rich>=13.7.0",
"typer>=0.12.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.2.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=5.0.0",
"ruff>=0.5.0",
"mypy>=1.10.0",
"black>=24.0.0",
]
# Fallback browser driver: workflows can run on Selenium + the real installed
# Chrome/Firefox when the Playwright bundled engines cannot launch (e.g.
# restricted runtimes that deny child-process spawns).
selenium = ["selenium>=4.21"]
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project.scripts]
browser-automation-agent = "browser_automation_agent.main:app"
browser-automation-agent-host = "browser_automation_agent.messaging.host:main"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
# Keep ruff's default rule set and add E402 explicitly. tests/conftest.py
# imports the project AFTER it pins the hermetic working directory — that
# ordering is deliberate and the lines carry `# noqa: E402` markers. While
# E402 is not enabled, ruff flags those markers as unused (RUF100) and the
# rule that documents the ordering is silently off.
extend-select = ["E402"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true