-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
161 lines (150 loc) · 3.9 KB
/
pyproject.toml
File metadata and controls
161 lines (150 loc) · 3.9 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "qp-vault"
version = "1.6.0"
description = "Governed knowledge store for autonomous organizations. Trust tiers, cryptographic audit trails, content-addressed storage, air-gap native."
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.12"
authors = [
{ name = "Quantum Pipes", email = "team@quantumpipes.io" },
]
keywords = [
"knowledge-store",
"vector-search",
"trust-tiers",
"audit-trail",
"content-addressed",
"air-gap",
"post-quantum",
"rag",
"enterprise",
"governance",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Database",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Security :: Cryptography",
"Typing :: Typed",
]
dependencies = [
"pydantic>=2.12",
]
[project.optional-dependencies]
sqlite = [
"aiosqlite>=0.22",
]
postgres = [
"sqlalchemy>=2.0.48",
"asyncpg>=0.31",
"pgvector>=0.4.2",
]
docling = [
"docling>=2.73",
]
local = [
"sentence-transformers>=3.0",
]
openai = [
"openai>=1.0",
]
capsule = [
"qp-capsule>=1.5",
]
encryption = [
"cryptography>=42",
"pynacl>=1.6.2",
]
pq = [
"liboqs-python>=0.14.1",
]
integrity = [
"numpy>=2.0",
]
fastapi = [
"fastapi>=0.135",
]
cli = [
"typer>=0.21",
"rich>=14.3",
]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.25",
"pytest-cov>=6.0",
"httpx>=0.28",
"mypy>=1.14",
"ruff>=0.9",
]
graph = [] # Graph subpackage has no extra deps beyond base pydantic
all = [
"qp-vault[sqlite,postgres,docling,local,openai,capsule,encryption,pq,integrity,fastapi,cli,graph]",
]
[project.scripts]
vault = "qp_vault.cli.main:app"
[project.urls]
Homepage = "https://github.com/quantumpipes/vault"
Documentation = "https://docs.quantumpipes.io/vault"
Repository = "https://github.com/quantumpipes/vault"
Changelog = "https://github.com/quantumpipes/vault/blob/main/CHANGELOG.md"
[tool.hatch.build.targets.wheel]
packages = ["src/qp_vault"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"unit: Unit tests (no external deps)",
"integration: Integration tests (may need database)",
"e2e: End-to-end tests (full pipeline)",
"postgres: Requires PostgreSQL",
"slow: Tests that take > 5 seconds",
]
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
disable_error_code = ["valid-type"] # method named list() conflicts with builtin list type
# Optional dependencies: stubs not always available during local development.
# CI installs the main extras before running mypy. These overrides handle
# deps that CI does NOT install (capsule, postgres, openai, pq, etc.).
[[tool.mypy.overrides]]
module = [
"qp_capsule.*",
"sentence_transformers.*",
"openai.*",
"docling.*",
"asyncpg.*",
"sqlalchemy.*",
"pgvector.*",
"liboqs.*",
"oqs.*",
"pynacl.*",
]
ignore_missing_imports = true
# FastAPI router decorators and Typer command decorators are untyped in their
# stubs. Our route/command functions ARE typed — the decorator wrappers just
# lack stubs. This is a known library limitation, not a code issue.
[[tool.mypy.overrides]]
module = [
"qp_vault.integrations.fastapi_routes",
"qp_vault.cli.main",
]
allow_untyped_decorators = true
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "SIM", "TCH"]
ignore = ["E501"] # Long SQL strings and complex comprehensions