forked from GreyDGL/PentestGPT
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathpyproject.toml
More file actions
143 lines (127 loc) · 3.46 KB
/
pyproject.toml
File metadata and controls
143 lines (127 loc) · 3.46 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
[project]
name = "pentestgpt"
version = "1.0.0"
description = "AI-powered autonomous penetration testing agent with beautiful TUI - Published at USENIX Security 2024"
authors = [{ name = "Gelei Deng", email = "GELEI.DENG@ntu.edu.sg" }]
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.12,<4.0"
keywords = [
"penetration-testing",
"security",
"ai",
"claude",
"pentest",
"cybersecurity",
"ctf",
"hacking",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Topic :: Security",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"textual>=0.47.0",
"rich>=13.7.0",
"pydantic>=2.5.0",
"pydantic-settings>=2.1.0",
"claude-agent-sdk>=0.1.0",
"python-dotenv>=1.0.0",
"anthropic>=0.75.0",
"langfuse>=2.0.0",
]
[project.scripts]
pentestgpt = "pentestgpt.interface.main:main"
pentestgpt-benchmark = "pentestgpt.benchmark.cli:main"
[project.urls]
Homepage = "https://github.com/GreyDGL/PentestGPT"
Repository = "https://github.com/GreyDGL/PentestGPT"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["pentestgpt"]
# ============================================================================
# uv Configuration
# ============================================================================
[tool.uv]
dev-dependencies = [
"ruff>=0.1.0",
"mypy>=1.7.0",
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
]
# ============================================================================
# Ruff Configuration (Linter & Formatter)
# ============================================================================
[tool.ruff]
target-version = "py312"
line-length = 100
extend-exclude = [
".git",
".mypy_cache",
".pytest_cache",
".ruff_cache",
"__pycache__",
"build",
"dist",
"legacy",
"PentestGPTClaude",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line too long (handled by formatter)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
# ============================================================================
# MyPy Configuration (Type Checking)
# ============================================================================
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"claude_agent_sdk.*",
"textual.*",
]
ignore_missing_imports = true
# ============================================================================
# Pytest Configuration
# ============================================================================
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
"--strict-markers",
"--strict-config",
]
testpaths = ["tests"]
pythonpath = ["."]
asyncio_mode = "auto"
markers = [
"unit: Unit tests (fast, no external dependencies)",
"integration: Integration tests (may use mocks)",
"docker: Docker tests (requires Docker daemon)",
"slow: Slow tests (skip with -m 'not slow')",
]