Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (112 loc) · 3.13 KB
/
Copy pathpyproject.toml
File metadata and controls
127 lines (112 loc) · 3.13 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
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "gemini-context-guard"
version = "0.3.3"
description = "A security-first sandbox for exploring the free Gemini models, with every answer locked to your own profile context."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [{ name = "gemini-context-guard contributors" }]
keywords = [
"gemini",
"google-genai",
"llm",
"ai-security",
"prompt-injection",
"guardrails",
"chatbot",
"personal-assistant",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT 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 :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Security",
"Typing :: Typed",
]
dependencies = [
"google-genai>=1.0,<2",
"pydantic>=2.7,<3",
"pydantic-settings>=2.3,<3",
"typer>=0.12,<1",
"rich>=13.7",
"fastapi>=0.111,<1",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.5",
"mypy>=1.10",
"bandit>=1.7.9",
"pip-audit>=2.7",
"pre-commit>=3.7",
"httpx>=0.27",
"uvicorn>=0.30",
]
[project.urls]
Homepage = "https://github.com/theanasuddin/gemini-context-guard"
Repository = "https://github.com/theanasuddin/gemini-context-guard"
Issues = "https://github.com/theanasuddin/gemini-context-guard/issues"
Changelog = "https://github.com/theanasuddin/gemini-context-guard/blob/main/CHANGELOG.md"
[project.scripts]
context-guard = "context_guard.cli:app"
[tool.vercel]
entrypoint = "api.index:app"
[tool.hatch.build.targets.wheel]
packages = ["src/context_guard"]
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"N", # pep8-naming
"S", # flake8-bandit
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
[tool.ruff.lint.per-file-ignores]
# S101: pytest uses bare asserts. RUF001: some tests intentionally contain
# confusable Unicode (fullwidth text) to prove the sanitizer folds it.
"tests/*" = ["S101", "RUF001"]
[tool.mypy]
python_version = "3.10"
disallow_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
no_implicit_optional = true
show_error_codes = true
[[tool.mypy.overrides]]
module = "google.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --cov=context_guard --cov-report=term-missing"
[tool.coverage.run]
source = ["context_guard"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
[tool.bandit]
exclude_dirs = ["tests", ".venv"]