-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (95 loc) · 2.87 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (95 loc) · 2.87 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "deconvolute"
dynamic = ["version"]
description = "MCP firewall for AI Agents. Blocks rug pull attacks, tool poisoning, and prompt injection via schema integrity checks and policy-as-code."
readme = "README.md"
requires-python = ">=3.11"
license = "Apache-2.0"
authors = [
{ name = "David Kirchhoff", email = "david@deconvoluteai.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Topic :: Security",
"Topic :: Security :: Cryptography",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"pydantic>=2.0",
"pydantic-settings>=2.0",
"PyYAML>=6.0",
"cel-python>=0.5.0",
"packaging>=26.0",
"platformdirs>=4.9.4",
]
[project.urls]
Homepage = "https://deconvolutelabs.com"
Issues = "https://github.com/deconvolute-labs/deconvolute/issues"
[project.scripts]
deconvolute = "deconvolute.cli.main:main"
dcv = "deconvolute.cli.main:main"
[project.optional-dependencies]
scanners = [
"lingua-language-detector>=2.1.1",
"yara-python>=4.5.4",
]
[dependency-groups]
dev = [
"pytest>=9.0.3",
"pytest-cov>=7.0.0",
"ruff>=0.14.0",
"mypy>=1.0.0",
"git-cliff>=2.11.0",
"pytest-asyncio>=1.3.0",
"pytest-mock>=3.15.1",
"openai>=2.15.0",
"types-pyyaml>=6.0.12.20250915",
"mcp>=1.27.0",
"pip-audit>=2.10.0",
]
[tool.hatch.version]
path = "src/deconvolute/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/deconvolute"]
[tool.ruff]
line-length = 88
target-version = "py311"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "B", "S", "UP"] # pycodestyle, pyflakes, isort, bugbear
ignore = [
"S101", # Ignore "assert" warnings (we use them in pytest)
]
[tool.ruff.lint.per-file-ignores]
# Tests often use "magic values" or mock data that look like secrets
"tests/**/*" = ["S105", "S106", "S101"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true # Force you to write types for every function
ignore_missing_imports = true # Prevents errors if a 3rd party lib has no types
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = "-ra -q --cov=deconvolute --cov-report=xml"