forked from Haidra-Org/hordelib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
128 lines (113 loc) · 3.75 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "horde-engine"
description = "A wrapper around ComfyUI to allow use by AI Horde."
authors = [
{name = "tazlin", email = "tazlin.on.github@gmail.com"},
{name = "db0", email = "mail@dbzer0.com"},
{name = "Jug", email = "jugdev@proton.me"},
]
readme = "README.md"
requires-python = ">=3.10"
license = { file="LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
]
# Don't specify dynamic deps for tox, only for build
dynamic=["version"]
#dynamic=["version", "dependencies"]
[project.urls]
"Homepage" = "https://github.com/Haidra-Org/hordelib"
"Bug Tracker" = "https://github.com/Haidra-Org/hordelib/issues"
"Changelog" = "https://github.com/Haidra-Org/hordelib/blob/releases/CHANGELOG.md"
[tool.setuptools]
license-files = ["LICENSE", "CHANGELOG*"]
[tool.setuptools_scm]
# Don't create a _version file in development mode
# We uncomment this automatically at build time.
#write_to = "hordelib/_version.py"
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.setuptools.package-dir]
hordelib = "hordelib"
[options.index-client]
extra-index-urls = ["https://download.pytorch.org/whl/cu121"]
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
"--import-mode=prepend",
"--ignore=nodes"
]
filterwarnings = [
"ignore:::.*",
"default:::hordelib.*"
]
testpaths = [
"tests"
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"default_sd15_model: marks tests as default_sd15_model (deselect with '-m \"not default_sd15_model\"')",
"default_sdxl_model: marks tests as default_sdxl_model (deselect with '-m \"not default_sdxl_model\"')",
"refined_sdxl_model: marks tests as refined_sdxl_model (deselect with '-m \"not refined_sdxl_model\"')",
]
[tool.black]
line-length = 119
# Exclude ComfyUI and any packages we have installed in nodes/
exclude = '''
/(
ComfyUI
| \.tox
| comfy_controlnet_preprocessors
| comfy_qr
| comfyui_layerdiffuse
| facerestore
| build
)/
''' # If you change this, you probably need to also change [tool.mypy] below
[tool.ruff] # XXX this isn't part of CI yet
line-length=119
exclude=["ComfyUI", "comfy_controlnet_preprocessors", "facerestore_cf", "comfy_qr", "comfyui_layerdiffuse", "build"]
ignore=[
# "F401", # imported but unused
"E402", # Module level import not at top of file
"A002", # Argument `x` is shadowing a python builtin
"A001", # Variable `x` is shadowing a python builtin
"INP001", # ... is part of an implicit namespace package. Add an `__init__.py`.
]
select = [
"A", # flake8-builtins
"I", # isort
# "S", # Bandit
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"YTT", # flake8-2020
# "BLE", # flake8-blind-except
"B", # flake8-bugbear
"COM", # flake8-commas
"C4", # flake8-comprehensions
# "G", # flake8-logging-format
"INP", # flake8-no-pep420
"PIE", # flake8-pie
# "T20", # flake8-print
"UP", # pyupgrade
"RSE", # flake8-raise
"RET", # flake8-return
# "SLF", # flake8-self
# "SIM", # flake8-simplify
# "ARG", # flake8-unused-arguments
# "TRY", # tryceratops
"RUF100"
]
[tool.ruff.per-file-ignores]
"comfy_horde.py" = ["I001", "F401"] # I001 is isort, F401 is imported but unused
"make_index.py" = ["E501"] # E501 is line too long
"med.py" = ["E501", "UP035"]
"vit.py" = ["E501", "UP035", "F821"] # F821 looks like a real bug, suppressed only for dev CI purposes
"run_stress_test.py" = ["F841"]