forked from openairymax/agentrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
191 lines (162 loc) · 3.95 KB
/
Copy pathpyproject.toml
File metadata and controls
191 lines (162 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[tool.poetry]
name = "agentos"
version = "1.0.0.9"
description = "AgentOS - 智能体操作系统核心引擎 (A+ 94/100 行业标杆评级)"
authors = ["Spharx AgentOS Team"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://spharx.cn"
repository = "https://gitee.com/spharx/agentos"
documentation = "https://docs.spharx.cn/agentos"
keywords = ["agent", "os", "ai", "memory", "cognition", "execution", "microkernel", "security"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Environment :: Console",
]
include = [
"agentos/manager/*.yaml",
"scripts/*.py",
"agentos/manuals/**/*.md",
]
[tool.poetry.dependencies]
python = "^3.9"
# 核心依赖
numpy = "^1.21.0"
scipy = "^1.7.0"
# 向量和检索
faiss-cpu = "^1.7.4"
sentence-transformers = "^2.2.0"
# 数据处理
pandas = "^1.3.0"
pyarrow = "^10.0.0"
# HTTP 和 API
requests = "^2.26.0"
httpx = "^0.23.0"
aiohttp = "^3.8.0"
# 配置管理
pyyaml = "^6.0"
python-dotenv = "^0.19.0"
# 日志和监控
opentelemetry-api = "^1.12.0"
opentelemetry-sdk = "^1.12.0"
opentelemetry-exporter-otlp = "^1.12.0"
# 数据库
sqlite-utils = "^3.20"
# JSON 处理
orjson = "^3.8.0"
# 工具库
tqdm = "^4.62.0"
click = "^8.0.0"
# LLM 相关
tiktoken = "^0.3.0"
[tool.poetry.group.dev.dependencies]
# 测试
pytest = "^7.0.0"
pytest-cov = "^4.0.0"
pytest-asyncio = "^0.20.0"
pytest-benchmark = "^4.0.0"
# 代码质量
black = "^22.0.0"
isort = "^5.10.0"
flake8 = "^5.0.0"
mypy = "^0.990"
pylint = "^2.15.0"
# 预提交钩子
pre-commit = "^2.20.0"
# 文档
sphinx = "^5.0.0"
sphinx-rtd-theme = "^1.0.0"
myst-parser = "^0.18.0"
# 类型检查
types-requests = "^2.28.0"
types-PyYAML = "^6.0.0"
# 安全
bandit = "^1.7.0"
safety = "^2.0.0"
[tool.poetry.scripts]
agentos-init = "scripts.init_config:main"
agentos-docs = "scripts.generate_docs:main"
agentos-benchmark = "scripts.benchmark:main"
agentos-validate = "scripts.validate:main"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
target-version = ['py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| atoms
| daemon
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 100
skip = ["atoms", "daemon", "build", "dist", ".venv"]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
exclude = ["agentos/atoms/", "agentos/daemon/", "build/", "dist/"]
[[tool.mypy.overrides]]
module = "faiss.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "sentence_transformers.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --cov=agentos --cov-report=term-missing"
testpaths = [
"tests/unit",
"tests/integration",
]
python_files = ["test_*.py", "*_test.py"]
python_functions = ["test_*"]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["agentos"]
omit = [
"*/tests/*",
"*/test_*",
"*/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]