-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (59 loc) · 2.62 KB
/
Copy pathpyproject.toml
File metadata and controls
67 lines (59 loc) · 2.62 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
[project]
name = "Comfyui-Model-Resolver"
description = "ComfyUI extension for automatically resolving missing models in loaded workflows. It features intelligent local fuzzy matching, direct cloud downloads, background download tracking, and automated in-place workflow updating."
version = "1.0.9"
license = { text = "MIT License" }
requires-python = ">=3.10"
dynamic = ["dependencies"]
[project.urls]
Repository = "https://github.com/Azornes/Comfyui-Model-Resolver"
Documentation = "https://github.com/Azornes/Comfyui-Model-Resolver/wiki"
"Bug Tracker" = "https://github.com/Azornes/Comfyui-Model-Resolver/issues"
[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
[tool.comfy]
PublisherId = "azornes"
DisplayName = "Comfyui Model Resolver"
Icon = ""
requires-comfyui = ">=0.26.0"
# ---------------------------------------------------------------------------
# Ruff – static analysis for Python
# ---------------------------------------------------------------------------
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
# Rule sets:
# E/W – pycodestyle errors & warnings
# F – pyflakes
# I – isort (import sorting)
# B – flake8-bugbear
# SIM – flake8-simplify
# UP – pyupgrade
# RUF – Ruff-specific rules
select = ["E", "W", "F", "I", "B", "SIM", "UP", "RUF"]
ignore = [
"E501", # line-too-long – handled by formatter / not enforced
"E402", # module-import-not-at-top – ComfyUI entry point needs late imports
"W293", # blank-line-with-whitespace – CRLF artifacts on indented blank lines
"B023", # function-uses-loop-variable – intentional in callback patterns
"SIM105", # suppressible-exception – contextlib.suppress not always clearer
"SIM108", # if-else-block-instead-of-if-exp – readability preference
"UP006", # non-pep585-annotation – project targets >=3.10 but uses typing compat
"UP035", # deprecated-import – typing compat kept for clarity
"RUF013", # implicit-optional – existing API signatures
"UP045", # non-pep604-annotation-optional – existing code uses Optional[X]
"UP038", # non-pep604-isinstance – existing isinstance(x, (A, B)) patterns
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # unused-import – re-exports
"E402", # module-import-not-at-top – ComfyUI entry point structure
"F811", # redefined-while-unused – re-exports / conditional imports
]
"tests/*" = [
"B011", # assert-false – ok in tests
"SIM300", # yoda-conditions – ok in tests
]
[tool.ruff.lint.isort]
known-first-party = ["core"]