-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (118 loc) · 3.08 KB
/
Copy pathpyproject.toml
File metadata and controls
127 lines (118 loc) · 3.08 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 = ["setuptools>=78.1.1", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "oh-my-coder"
version = "0.2.1"
description = "Multi-agent AI programming assistant with Chinese LLM support"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.9"
authors = [{name = "VOBC", email = "vobc@example.com"}]
keywords = ["ai", "agent", "multi-agent", "coding", "llm", "deepseek"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dependencies = [
"fastapi>=0.104.0",
"uvicorn>=0.24.0",
"pydantic>=2.5.0",
"httpx>=0.25.0",
"tenacity>=8.0.0",
"python-dotenv>=1.0.0",
"rich>=13.7.0",
"typer>=0.9.0",
"jinja2>=3.0.0",
"redis>=4.0.0",
"websockets>=10.0",
"pyyaml>=6.0",
"typing-extensions>=4.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-xdist>=3.5.0",
"pytest-asyncio>=0.25.0",
"pytest-cov>=4.1.0",
"pytest-timeout>=2.2.0",
"black==24.10.0",
"ruff==0.15.9",
"mypy>=1.8.0",
"requests>=2.31.0",
]
web = [
"fastapi>=0.104.0",
"uvicorn>=0.24.0",
"jinja2>=3.0.0",
"websockets>=10.0",
"aiofiles>=23.0.0",
"python-multipart>=0.0.6",
]
[project.scripts]
omc = "src.commands.cli:app"
[tool.setuptools.packages.find]
where = ["."]
include = ["src*"]
[tool.black]
line-length = 88
target-version = ["py310", "py311", "py312"]
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
[tool.ruff]
line-length = 88
target-version = "py310"
exclude = ["*.css", "*.html", "*.js", "*.ts", "*.tsx", "*.vue", "*.json", "*.yaml", "*.yml", "*.md"]
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = [
"E501", # 行太长
"E402", # import 位置(examples 目录)
"E722", # 裸 except
"E701", # 一行多语句
"W293", # 空白行空格
"B008", # 函数默认参数里的函数调用(FastAPI/typer 常用)
"B904", # raise ... from err
"B905", # zip() strict
"N802", # 函数名大写
"N805", # 参数名大写
"N806", # 变量名大写
"N815", # 类变量大写
"F841", # 未使用变量
"I", # import 排序(isort)
"UP", # pyupgrade(`X | None` vs Optional)
"W292", # 文件末尾无换行
]
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-v --tb=short -ra -q --strict-markers --dist loadscope -n auto --timeout=300 --timeout_method=signal"
fail_under = 70
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"