Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (48 loc) · 1.74 KB
/
Copy pathpyproject.toml
File metadata and controls
54 lines (48 loc) · 1.74 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
[build-system]
requires = ["setuptools>=45.0"]
build-backend = "setuptools.build_meta"
[project]
name = "cowagent"
version = "1.0.0"
description = "CowAgent - AI Agent on WeChat and more"
requires-python = ">=3.7"
dependencies = [
"click>=8.0",
"requests>=2.28.2",
]
[project.scripts]
cow = "cli.cli:main"
[tool.setuptools.packages.find]
include = ["cli*"]
[tool.ruff]
target-version = "py39"
line-length = 120
extend-exclude = [
"desktop",
"docs",
".venv",
".fuxi",
]
[tool.ruff.lint]
# F = pyflakes (real bugs: unused imports, undefined names, dead code).
# These are the violations we gate CI on: a stray F-error usually means a real
# defect. E/W/B (style, whitespace, bugbear) are enabled for editor feedback but
# deliberately NOT fatal: the codebase carries thousands of legacy E501 long
# lines and B904 raise-without-from that would take a separate cleanup pass.
# F403/F405: star-imports are an intentional re-export pattern across channels
# and plugins (e.g. channel/chat_channel.py exposes Reply/ReplyType/ContextType
# for every channel subclass). Flagging them adds noise without catching bugs.
select = ["E", "F", "W", "B"]
ignore = [
"F403", # undefined-local-with-import-star (intentional re-export pattern)
"F405", # undefined-local-with-import-star-usage
]
[tool.ruff.lint.per-file-ignores]
# Modules that use try/except ImportError as an availability probe import the
# symbols for the probe and never use them again; keep the marker explicit.
"agent/tools/browser/browser_service.py" = ["F401"]
"common/package_manager.py" = ["F401"]
"voice/xunfei/xunfei_voice.py" = ["F401"]
# __init__.py re-exports the package's public API on purpose.
"agent/tools/vision/__init__.py" = ["F401"]
"plugins/cow_cli/__init__.py" = ["F401"]