Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
163 lines (148 loc) · 3.95 KB
/
Copy pathpyproject.toml
File metadata and controls
163 lines (148 loc) · 3.95 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
162
163
[build-system]
requires = ["hatchling>=1.21"]
build-backend = "hatchling.build"
[project]
name = "lynx-agent"
description = "Policy-gated, durable, audited execution for AI agent tool calls. Every action gets a five-verdict policy check, a crash-safe checkpoint, and a tamper-evident audit event — a library, not a server."
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.11"
authors = [{ name = "Lynx contributors" }]
keywords = [
"ai",
"agents",
"llm",
"policy",
"policy-engine",
"governance",
"streaming-events",
"agentic",
"claude",
"openai",
"langgraph",
"crewai",
"mcp",
"lynx",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Information Technology",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Monitoring",
"Topic :: Security",
"Framework :: AsyncIO",
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = [
"click>=8.1",
"pyyaml>=6.0",
"rich>=13.7",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"ruff>=0.5",
"mypy>=1.10",
"hypothesis>=6.100",
"build>=1.2",
"twine>=5.0",
]
anthropic = ["anthropic>=0.30"]
openai = ["openai>=1.40"]
openai-agents = ["openai-agents>=0.1"]
langgraph = ["langgraph>=0.2"]
crewai = ["crewai>=0.40"]
mcp = ["mcp>=1.0"]
otel = ["opentelemetry-api>=1.20"]
all = [
"anthropic>=0.30",
"openai>=1.40",
"openai-agents>=0.1",
"langgraph>=0.2",
"crewai>=0.40",
"mcp>=1.0",
"opentelemetry-api>=1.20",
]
[project.scripts]
lynx = "lynx.cli.main:cli"
[project.urls]
Homepage = "https://github.com/hadihonarvar/lynx"
Repository = "https://github.com/hadihonarvar/lynx"
Documentation = "https://github.com/hadihonarvar/lynx/tree/main/docs"
Issues = "https://github.com/hadihonarvar/lynx/issues"
Changelog = "https://github.com/hadihonarvar/lynx/blob/main/CHANGELOG.md"
PyPI = "https://pypi.org/project/lynx-agent/"
Releases = "https://github.com/hadihonarvar/lynx/releases"
[tool.hatch.version]
path = "src/lynx/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/lynx"]
[tool.hatch.build.targets.sdist]
include = [
"src/lynx",
"tests",
"docs",
"examples",
"README.md",
"LICENSE",
"CHANGELOG.md",
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
"SECURITY.md",
"pyproject.toml",
"Makefile",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "W", "B", "UP", "RUF"]
ignore = ["E501", "B008"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B017", "RUF012"]
"examples/*" = ["RUF001", "RUF002", "RUF012"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
# Optional integration extras that ship no type stubs. Imported lazily behind a
# guarded import, so the missing-stub error is noise, not a real type hole.
[[tool.mypy.overrides]]
module = ["agents.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "-ra --strict-markers"
filterwarnings = [
"ignore::pytest.PytestUnraisableExceptionWarning",
]
[tool.coverage.run]
source = ["src/lynx"]
branch = true
omit = [
"src/lynx/adapters/*",
"src/lynx/cli/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]