File size: 1,875 Bytes
9fa7eea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[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