Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
185 lines (175 loc) · 4.56 KB
/
Copy pathpyproject.toml
File metadata and controls
185 lines (175 loc) · 4.56 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "counterscarp-engine"
version = "5.1.1"
description = "Scarpshield (Counterscarp Engine): smart contract security auditing platform"
requires-python = ">=3.10"
license = "BUSL-1.1"
authors = [{name = "Scarpshield / Counterscarp Engine Team"}]
readme = "README.md"
keywords = ["security", "audit", "smart-contracts", "solidity", "solana", "blockchain"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Security",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
# Core dependencies (required)
"requests~=2.31",
"defusedxml~=0.7",
"packaging~=23.0",
"tomli~=2.0; python_version < '3.11'",
"solc-select~=1.0",
"colorama~=0.4",
# Auth/web core deps — needed by webapp auth module; kept in [web] extras too
"passlib[bcrypt]~=1.7",
"authlib~=1.3",
"httpx~=0.25",
"itsdangerous~=2.1",
]
[project.urls]
Homepage = "https://counterscarp.io"
Repository = "https://github.com/RunTimeAdmin/counterscarp"
Documentation = "https://github.com/RunTimeAdmin/counterscarp/tree/main/docs"
"Bug Tracker" = "https://github.com/RunTimeAdmin/counterscarp/issues"
[project.optional-dependencies]
ai = [
# AI/RAG dependencies (optional - module works without them)
"sentence-transformers~=2.0",
"numpy~=1.24",
]
advanced = [
# Optional advanced tools
"openai~=1.0",
]
web = [
# Web UI dependencies
"fastapi~=0.100",
"uvicorn[standard]~=0.23",
"python-multipart~=0.0.6",
"jinja2~=3.1",
"aiofiles~=23.0",
"stripe~=5.0",
"passlib[bcrypt]~=1.7",
"authlib~=1.3",
"httpx~=0.25",
"itsdangerous~=2.1",
"redis~=5.0",
"arq~=0.26",
"pyotp~=2.9",
"cryptography~=42.0",
]
pdf = [
# PDF report generation (pure Python, no system dependencies)
"xhtml2pdf~=0.2.11",
]
dev = [
# Development/testing dependencies
"pytest~=7.0",
"pytest-cov~=4.0",
"mypy~=1.0",
"pytest-benchmark~=4.0",
"types-requests~=2.31",
]
[project.scripts]
counterscarp-engine = "orchestrator:main"
counterscarp = "orchestrator:main"
counterscarp-generate-pipeline = "pipeline_generator:main"
scarpshield-engine = "orchestrator:main"
scarpshield = "orchestrator:main"
scarpshield-generate-pipeline = "pipeline_generator:main"
[tool.pytest.ini_options]
# Migrated from pytest.ini - this file can now be removed
# Original pytest.ini location: pytest.ini
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
[tool.setuptools]
include-package-data = true
packages = [
"webapp",
"webapp.routes",
"webapp.templates",
"webapp.static",
"phases",
"counterscarp_core",
]
py-modules = [
"orchestrator",
"scan_phase",
"async_subprocess",
"config_loader",
"logger",
"exceptions",
"http_utils",
"heuristic_scanner",
"red_team_scan",
"aderyn_wrapper",
"medusa_wrapper",
"symbolic_wrapper",
"fuzz_wrapper",
"supply_chain_check",
"access_matrix",
"intent_check",
"upgrade_diff",
"solana_analyzer",
"knowledge_fetcher",
"solana_intel",
"threat_intel",
"inflation_scaffold",
"report_generator",
"exploit_generator",
"gui",
"embeddings",
"rag_engine",
"attack_graph",
"visualizer",
"history_scanner",
"idl_validator",
"pipeline_generator",
"fingerprint_scanner",
"protocol_db",
"plugin_manager",
"path_security",
"license_manager",
"doctor",
"state_manager",
"signature_updater",
"healthcheck",
"fork_logic_checks",
"project_ingest",
"solidity_structure",
]
[tool.setuptools.package-data]
"*" = ["*.toml", "*.txt", "*.md", "py.typed", "*.pyi"]
webapp = ["templates/*.html", "static/*.css", "static/*.png"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_untyped_defs = false
check_untyped_defs = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["tests.*"]
ignore_errors = true