forked from Haidra-Org/horde-worker-reGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
114 lines (100 loc) · 2.09 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "horde_worker_regen"
version = "5.0.2"
description = "Allows you to connect to the AI Horde and generate images for users."
authors = [
{name = "tazlin", email = "[email protected]"},
{name = "db0", email = "[email protected]"},
{name = "Jug", email = "[email protected]"},
]
readme = "README.md"
requires-python = ">=3.10"
dynamic=["dependencies"]
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Development Status :: 2 - Pre-Alpha",
]
[project.urls]
"Homepage" = "https://github.com/Haidra-Org/AI-Horde-Worker"
"Bug Tracker" = "https://github.com/Haidra-Org/AI-Horde-Worker"
[project.scripts]
run_worker = "horde_worker_regen.run_worker:start"
download_models = "horde_worker_regen.download_models:main"
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.setuptools.package-dir]
horde_worker_regen = "horde_worker_regen"
[tool.setuptools.package-data]
tests = ["*.json"]
horde_worker_regen = ["assets/*.png"]
[tool.ruff]
line-length = 119
lint.select = [
"A",
"I",
"E",
"W",
"F",
"UP",
"YTT",
"B",
"C4",
"PIE",
"RET",
"SIM",
"COM",
"D",
"ANN"]
lint.ignore = [
"ANN101",
"ANN102",
"D100", # Missing docstring in public module
# Ignore D rules for non-google docstring standard
"D203",
"D204",
"D213",
"D215",
"D400",
"D404",
"D406",
"D407",
"D408",
"D409",
"D413",]
extend-exclude = ["conda", "model-stats.py"]
[tool.ruff.lint.per-file-ignores]
"download_models.py" = ["E402"]
"run_worker.py" = ["E402"]
"convert_config_to_env.py" = ["E402"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.black]
line-length = 119
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| conda
| clip_blip
| hf_transformers
| horde_model_reference
)/
'''
[tool.mypy]
plugins = [
"pydantic.mypy"
]