Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (115 loc) · 5.07 KB
/
Copy pathpyproject.toml
File metadata and controls
125 lines (115 loc) · 5.07 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "secfoo"
dynamic = ["version"]
description = "AI security review CLI: SAST, secret scanning, SCA, threat modeling and architecture review with Claude Code, Copilot, Codex, Gemini, Cursor or an API key. Reads your design docs, Confluence and Jira through MCP. SARIF output for CI."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "RakFort", email = "info@rakfort.com" },
]
keywords = [
"security", "appsec", "devsecops", "sast", "static-analysis", "secret-scanning", "sca",
"threat-modeling", "security-architecture", "owasp", "stride", "sarif", "code-review",
"ai-security", "llm", "llm-agent", "claude-code", "copilot", "codex", "gemini", "cursor",
"security-scanner", "ci", "compliance", "mcp", "confluence", "context-aware",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
# typer>=0.12 alone still resolves/keeps typer 0.12.3 on an environment
# that already has it (e.g. an old venv, or a resolver picking the
# floor) -- confirmed by hitting a real one: typer 0.12.3 + click 8.5.0
# broke multi-word option parsing ("secfoo accept create --threat-id T1
# ..." rejected as unexpected extra arguments). typer>=0.29.1 is the
# actual minimum verified working against the click pin below.
"typer>=0.29.1",
# click 8.3.3+ fixes PYSEC-2026-2132 (click.edit command injection).
"click>=8.5.1,<9",
"rich>=15.0.0",
"fastapi>=0.162.5",
"uvicorn[standard]>=0.54.0",
"jinja2>=3.1.6",
"markdown-it-py>=4.3.0",
"python-multipart>=0.0.32",
"tomli>=2.0; python_version < '3.11'",
"tomlkit>=0.13.0",
# Pure-Python text extraction for uploaded third-party vendor documents
# (docext.py) -- deliberately no system-level binaries (no poppler, no
# LibreOffice) so the Docker/Kubernetes image stays lean and doesn't
# need extra OS packages installed.
"pypdf>=7.1.1",
"python-docx>=1.2.0",
"python-pptx>=1.0.2",
"langgraph>=1.2.24",
"litellm>=1.110.2",
# MCP client for the `api` agent's tool loop (agents/mcp_tools.py, #123).
# <2: the 2.x SDK reworks the client transports this module uses.
"mcp>=1.12,<2",
]
[project.optional-dependencies]
dev = ["jsonschema>=4.26.0", "pytest>=9.2.0", "pytest-cov>=7.1.0", "hypothesis>=6.168.5", "httpx>=0.28.1", "ruff==0.17.6", "bandit>=1.9.4", "pip-audit>=2.10.1", "langgraph>=1.2.24"]
build = ["pyinstaller>=6.22.3"]
# The `api` agent (secfoo/agents/api.py) needs litellm, langgraph and mcp, which are regular
# dependencies above, so there is no separate `api` extra to install.
# (dev lists langgraph too so the real graph runs in tests; litellm is faked.)
[project.urls]
Homepage = "https://secfoo.com"
Documentation = "https://secfoo.com/docs/index.html"
Source = "https://github.com/secfoo-com/secfoo"
Changelog = "https://github.com/secfoo-com/secfoo/releases"
Issues = "https://github.com/secfoo-com/secfoo/issues"
"CI integration" = "https://github.com/secfoo-com/secfoo/blob/main/docs/CI.md"
[project.scripts]
secfoo = "secfoo.cli:main"
[tool.hatch.version]
# Single source of truth for the version -- pyproject.toml reads it from
# here instead of duplicating it, so a version bump can't happen in one
# place and not the other (exactly the bug that shipped 0.1.1 with
# secfoo.__version__ still reporting "0.1.0").
path = "src/secfoo/__about__.py"
[tool.hatch.build.targets.sdist]
# `only-include` (not `include`, which is additive on top of hatchling's
# default "everything in the project root" selection -- confirmed the hard
# way when `include` alone still let an unrelated cloned repo leak into a
# published release) is the actual strict allowlist: nothing outside these
# paths ships, full stop, regardless of what else lands in the project root.
only-include = [
"src/secfoo",
"README.md",
"LICENSE",
]
[tool.hatch.build.targets.wheel]
packages = ["src/secfoo"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
# Adversarial and fuzz fixtures are exact byte inputs, checked by SHA-256
# (scripts/adversarial_eval.py corpus_digest); lint must never rewrite them.
extend-exclude = ["tests/fixtures"]
[tool.ruff.lint.flake8-bugbear]
# typer.Option and FastAPI's Form are designed to be used as parameter
# defaults (they describe the parameter, they aren't shared mutable state),
# so B008 reports them as false positives.
extend-immutable-calls = ["typer.Option", "fastapi.Form"]