-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (78 loc) · 2.4 KB
/
pyproject.toml
File metadata and controls
90 lines (78 loc) · 2.4 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
[build-system]
requires = ["setuptools>=82.0.1", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "little-canary"
version = "0.3.0"
description = "Prompt injection detection for LLM apps using sacrificial canary-model probes and structural preflight checks"
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.8"
authors = [
{name = "Hermes Labs", email = "roli@hermes-labs.ai"},
]
keywords = ["llm", "security", "prompt-injection", "prompt-injection-detection", "ai-safety", "canary", "agent-security"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Security",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"requests>=2.32.5",
]
[project.optional-dependencies]
benchmark = [
"anthropic>=0.100.0",
]
dev = [
"pytest>=8.4.2",
"pytest-cov>=7.1.0",
"mypy>=1.19.1",
"ruff>=0.15.12",
"pip-audit>=2.9.0",
"anthropic>=0.100.0",
]
[project.scripts]
little-canary = "little_canary.cli:main"
[project.urls]
Homepage = "https://hermes-labs.ai"
Repository = "https://github.com/hermes-labs-ai/little-canary"
Issues = "https://github.com/hermes-labs-ai/little-canary/issues"
Documentation = "https://github.com/hermes-labs-ai/little-canary#readme"
Changelog = "https://github.com/hermes-labs-ai/little-canary/blob/main/CHANGELOG.md"
[tool.setuptools.packages.find]
include = ["little_canary*"]
[tool.setuptools.package-data]
little_canary = ["py.typed"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short --strict-markers"
markers = [
"slow: marks tests that require network mocking",
]
[tool.coverage.run]
source = ["little_canary"]
omit = ["tests/*"]
[tool.coverage.report]
show_missing = true
fail_under = 80
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
check_untyped_defs = true
[tool.ruff]
target-version = "py38"
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM"]
ignore = ["UP007", "E501", "SIM102", "SIM110", "SIM300"]