[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"

[project]
name = "pentestgpt-agent"
version = "0.1.0"
description = "A small, memory-backed penetration-testing agent built on UnifiedAgent."
requires-python = ">=3.12,<4.0"
dependencies = [
    "unified-agent==0.3.0",
]

[project.scripts]
pentestgpt-agent = "pentestgpt_agent.trial:main"
pentestgpt-agent-audit = "pentestgpt_agent.audit:main"

[project.optional-dependencies]
claude = ["unified-agent[claude]==0.3.0"]
codex = ["unified-agent[codex]==0.3.0"]
all = ["unified-agent[all]==0.3.0"]

[dependency-groups]
dev = [
    "mypy>=1.13",
    "pytest>=8.0",
    "pytest-asyncio>=0.24",
    "ruff>=0.8",
]

[tool.uv.sources]
unified-agent = { git = "https://github.com/PentestGPT-Project/UnifedAgentWrapper.git", rev = "acff8eeadf93e367d4a1578d3a2739cbc9d3ace5" }

[tool.uv]
prerelease = "allow"

[tool.setuptools]
package-dir = { "" = "src" }
packages = ["pentestgpt_agent"]

[tool.pytest.ini_options]
addopts = ["--strict-config", "--strict-markers"]
asyncio_mode = "auto"
testpaths = ["tests"]
markers = ["live: invokes a real model backend and may spend tokens"]

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

[tool.ruff.lint]
select = ["B", "C4", "E", "F", "I", "RUF", "SIM", "UP", "W"]
ignore = ["E501"]

[tool.mypy]
python_version = "3.12"
strict = true

[[tool.mypy.overrides]]
module = ["unified_agent", "unified_agent.*"]
ignore_missing_imports = true
