-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
164 lines (148 loc) · 3.52 KB
/
Copy pathpyproject.toml
File metadata and controls
164 lines (148 loc) · 3.52 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "agent-trace"
dynamic = ["version"]
description = "AI IDE 会话监控与 Trace 上报工具 - 支持 Kimi、Claude 等多款 AI IDE"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.9"
authors = [
{name = "AgentTrace Contributors"},
]
keywords = ["ai", "ide", "trace", "monitoring", "kimi", "claude", "coze", "observability"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Monitoring",
]
dependencies = [
"cozeloop>=0.1.0",
"fastapi>=0.110.0",
"uvicorn[standard]>=0.29.0",
"websockets>=12.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"black>=22.0",
"ruff>=0.1.0",
"mypy>=1.0",
]
docs = [
"mkdocs>=1.5",
"mkdocs-material>=9.0",
]
[project.scripts]
agent-trace = "agent_trace.cli:main"
atrace = "agent_trace.cli:main"
[project.urls]
Homepage = "https://github.com/agenttrace/agent-trace"
Documentation = "https://github.com/agenttrace/agent-trace/blob/main/README.md"
Repository = "https://github.com/agenttrace/agent-trace"
Changelog = "https://github.com/agenttrace/agent-trace/blob/main/CHANGELOG.md"
Issues = "https://github.com/agenttrace/agent-trace/issues"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/agent_trace/_version.py"
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"/docs",
"/scripts",
"/CHANGELOG.md",
"/LICENSE",
"/README.md",
"/REFERENCES.md",
]
[tool.hatch.build.targets.wheel]
packages = ["src/agent_trace"]
[tool.black]
line-length = 100
target-version = ["py39", "py310", "py311", "py312"]
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.ruff]
line-length = 100
target-version = "py39"
select = [
"E", # pycodestyle errors
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"W", # pycodestyle warnings
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long, handled by black
]
[tool.ruff.pydocstyle]
convention = "google"
[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
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
pythonpath = ["src"]
addopts = [
"-ra",
"-v",
"--strict-markers",
"--tb=short",
]
markers = [
"unit: 单元测试",
"integration: 集成测试",
"e2e: 端到端测试",
"slow: 慢测试",
]
[tool.coverage.run]
source = ["agent_trace"]
branch = true
omit = [
"*/tests/*",
"*/test_*",
"src/agent_trace/_version.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]