Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (68 loc) · 2.35 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (68 loc) · 2.35 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "decascan"
version = "0.1.0"
description = "OWASP Top 10 scanner (MCP, LLM applications, web) for Python and TypeScript"
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
authors = [{ name = "Srinivas Chippagiri" }]
keywords = ["mcp", "security", "owasp", "sast", "model-context-protocol", "llm", "owasp-top-10"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Security",
]
dependencies = [
"click>=8.1",
"rich>=13.0",
"PyYAML>=6.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.6",
]
[project.scripts]
decascan = "decascan.cli:main"
[project.urls]
Homepage = "https://github.com/cvas22/decascan"
Issues = "https://github.com/cvas22/decascan/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/decascan"]
[tool.hatch.build.targets.sdist]
# Hatch honours .gitignore but not .git/info/exclude, so local tooling output (graphify-out/) and the
# lockfile would otherwise ship in the source distribution.
exclude = ["/graphify-out", "/uv.lock", "/dist", "/.venv"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage.run]
source = ["decascan"]
[tool.coverage.report]
# Measured at 91% when this gate was added; the floor leaves room for a small untested change but
# fails a PR that adds a feature without tests.
fail_under = 88
show_missing = true
skip_covered = true
exclude_lines = ["pragma: no cover", "if __name__ == .__main__.:"]
[tool.ruff]
# Findings carry their remediation as prose. 110 keeps that text readable in-source instead of
# shredding every sentence across four continuation strings.
line-length = 110
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
[tool.ruff.lint.per-file-ignores]
# These modules are tables of regular expressions, which cannot be wrapped without changing them.
"src/decascan/rules/llm_top10.py" = ["E501"]
"src/decascan/rules/web_top10.py" = ["E501"]
# Test samples are source code held in strings; wrapping them would change what is tested.
"tests/*.py" = ["E501"]