forked from rookiestar28/ComfyUI-OpenClaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (121 loc) · 3.47 KB
/
pyproject.toml
File metadata and controls
137 lines (121 loc) · 3.47 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
[project]
name = "comfyui-openclaw"
description = "Your own personal AIGC Factory. Any picture. Any reel. The Comfy way.©️"
version = "0.4.0"
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.10"
# No external dependencies required - uses only Python stdlib + ComfyUI's bundled packages
dependencies = []
[project.optional-dependencies]
# WeChat AES encrypted ingress mode (R82) — lazy-imported, only needed when encrypt_type=aes
wechat-aes = ["pycryptodomex>=3.20"]
[project.urls]
Repository = "https://github.com/rookiestar28/ComfyUI-OpenClaw"
Documentation = "https://github.com/rookiestar28/ComfyUI-OpenClaw#readme"
"Bug Tracker" = "https://github.com/rookiestar28/ComfyUI-OpenClaw/issues"
[tool.comfy]
PublisherId = "rookiestar"
DisplayName = "ComfyUI OpenClaw"
Icon = ""
# ========================================
# Development Tools Configuration
# ========================================
[tool.ruff]
# Ruff replaces flake8, isort, and other linters
target-version = "py310"
line-length = 120
indent-width = 4
[tool.ruff.lint]
# Enable pycodestyle (E, W), Pyflakes (F), isort (I), and more
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line too long (handled by formatter)
"B008", # Do not perform function call in argument defaults
"B904", # Within an except clause, raise exceptions with from err
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
"tests/*" = ["S101"] # Allow assert statements in tests
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # Start lenient, can tighten later
disallow_any_unimported = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
check_untyped_defs = true
strict_equality = true
# Paths to check
files = ["*.py", "tests/**/*.py"]
# Ignore missing imports for ComfyUI and external packages
[[tool.mypy.overrides]]
module = [
"aiohttp.*",
"server",
"folder_paths",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
norecursedirs = [".git", ".tox", "dist", "build", "*.egg", "patterns"]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"--ignore=__init__.py",
# "--cov=.",
# "--cov-report=term-missing",
# "--cov-report=html",
# "--cov-report=xml",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
"asyncio: marks tests as async (pytest-asyncio)",
]
[tool.coverage.run]
source = ["."]
omit = [
"tests/*",
"**/test_*.py",
"**/__pycache__/*",
".venv/*",
"venv/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.isort]
profile = "black"
line_length = 88