Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (144 loc) · 4.41 KB
/
Copy pathpyproject.toml
File metadata and controls
158 lines (144 loc) · 4.41 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "cloq"
version = "0.1.1"
description = "Local-first context sanitizer — cloak your secrets before they reach the cloud"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
authors = [
{ name = "Cloq Contributors" },
]
keywords = [
"llm",
"security",
"proxy",
"pii",
"secrets",
"sanitizer",
"privacy",
"enterprise",
"ai",
"openai",
"anthropic",
"claude",
"gpt",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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 :: Libraries :: Python Modules",
"Topic :: Internet :: Proxy Servers",
"Typing :: Typed",
]
dependencies = [
"fastapi>=0.110.0",
"httpx>=0.27.0",
"uvicorn[standard]>=0.29.0",
"typer>=0.12.0",
"rich>=13.7.0",
"pydantic>=2.7.0",
"pydantic-settings>=2.2.0",
"pyyaml>=6.0.1",
"questionary>=2.0.1",
]
[project.optional-dependencies]
pii = [
"presidio-analyzer>=2.2.0",
"presidio-anonymizer>=2.2.0",
"spacy>=3.7.0",
]
dev = [
"pytest>=8.1.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=5.0.0",
"pytest-httpx>=0.30.0",
"ruff>=0.4.0",
"mypy>=1.10.0",
"pre-commit>=3.7.0",
"types-PyYAML>=6.0.0",
]
docs = [
"mkdocs-material>=9.5.0",
"mkdocstrings[python]>=0.25.0",
"mkdocs-gen-files>=0.5.0",
"mkdocs-literate-nav>=0.6.0",
]
all = ["cloq[pii,dev,docs]"]
[project.scripts]
cloq = "cloq.cli.main:app"
cloq-cli = "cloq.cli.main:app"
[project.urls]
Homepage = "https://github.com/CodeBase-X1/cloq"
Documentation = "https://github.com/CodeBase-X1/cloq#readme"
Repository = "https://github.com/CodeBase-X1/cloq"
Issues = "https://github.com/CodeBase-X1/cloq/issues"
Changelog = "https://github.com/CodeBase-X1/cloq/blob/main/CHANGELOG.md"
# ── Hatch ────────────────────────────────────────────────────────────
[tool.hatch.build.targets.wheel]
packages = ["src/cloq"]
[tool.hatch.build.targets.sdist]
include = ["src/cloq", "LICENSE", "README.md"]
# ── Ruff ─────────────────────────────────────────────────────────────
[tool.ruff]
target-version = "py310"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # ruff-specific rules
]
ignore = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["cloq"]
# ── Pytest ───────────────────────────────────────────────────────────
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = [
"--strict-markers",
"--cov=cloq",
"--cov-report=term-missing",
"--cov-report=html:htmlcov",
]
# ── Mypy ─────────────────────────────────────────────────────────────
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = ["presidio_analyzer.*", "presidio_anonymizer.*"]
ignore_missing_imports = true
# ── Coverage ─────────────────────────────────────────────────────────
[tool.coverage.run]
source = ["cloq"]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]