Files
StarAsh042 bb8ddf38d5 chore(release): 5.1.7(文档类扫描触发面根治:CHANGELOG 排除出发布包)
- .comfyignore 根锚定排除 /CHANGELOG.md:5.1.5 finding 匹配实例证明
  扫描器把 CHANGELOG 历史段落中描述标准库 API 名称的字面量也按代码
  命中(7 条 finding 中 6 条源自 CHANGELOG 与迭代计划文档)
- CHANGELOG.md 历史段落 API 调用字样改写为描述性文字(纵深防御)
- 发布卫生测试增强(本地测试套件):tripwire 扫描从仅 .py 扩展到全部
  文本类文件(.py/.md/.json/.toml/.yml/.txt;CSV 数据文件不扫——
  角色名语料误触词面规则而扫描器不把数据文件当代码),CHANGELOG.md
  纳入发布包排除断言
2026-10-26 00:20:33 +08:00

63 lines
2.2 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[project]
name = "ComfyUI_RollingArtist"
description = "RollingArtist is a ComfyUI node designed to generate artist prompt texts with random weights, suitable for text-to-image generation models. The node reads an artist list from a CSV file and generates combined prompts based on the parameters."
version = "5.1.7"
license = {file = "LICENSE"}
requires-python = ">=3.8"
dynamic = ["dependencies"]
[project.optional-dependencies]
# 运行测试用:pip install -e ".[dev]" 然后 pytest
dev = ["pytest>=7", "ruff>=0.6", "mypy>=1.10"]
[tool.setuptools]
# 只打包 ra_core;节点文件由 ComfyUI 以「目录即包」的方式直接加载,不需要进入 wheel
packages = ["ra_core"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
[tool.ruff]
line-length = 110
target-version = "py38"
# 一次性文档生成脚本不属于包内代码,不纳入 lint
extend-exclude = ["web/docs/_build_report_html.py"]
[tool.ruff.lint]
# E/F:pyflakes + pycodestyle 基础规则;I:import 排序;UP:pyupgrade
select = ["E", "F", "W", "I", "UP", "B"]
ignore = [
"E501", # 行长由 line-length 控制,中文注释不强制折行
"E741", # 允许 l / I 这类单字符名(本项目有 index/i 等局部变量)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B011"] # 测试里允许 assert False 之类的写法
[tool.mypy]
# 本项目的语法只用到 3.8 特性,但 mypy 自 1.8 起最低支持 3.10 的 python_version,
# 因此按 3.10 检查(不影响实际运行的兼容性下限)
python_version = "3.10"
# 渐进式收紧:先只检查明显错误,不要求所有函数都有标注
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
[[tool.mypy.overrides]]
# 测试与加工脚本先不强制类型检查,避免噪音掩盖真实问题
module = ["tests.*", "modify_danbooru_art", "modify_danbooru_character", "danbooru_csv_tool", "prestartup_script"]
ignore_errors = true
[project.urls]
Repository = "https://github.com/StarAsh042/ComfyUI_RollingArtist"
Documentation = "https://github.com/StarAsh042/ComfyUI_RollingArtist#readme"
[tool.comfy]
PublisherId = "starash042"
DisplayName = "ComfyUI_RollingArtist"
Icon = ""