-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathpyproject.toml
106 lines (94 loc) · 2.81 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "pythorhead"
description = "A python library for interacting with Lemmy API"
authors = [
{name = "db0", email = "[email protected]"},
]
version = "v0.27.3"
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 :: 2 - Pre-Alpha",
]
dependencies = [
"requests >= 2.31.0, < 3.0.0",
"semver >= 3.0.2",
"pillow >= 10.2.0",
"python-dateutil >= 2.9.0"
]
[project.urls]
"Homepage" = "https://github.com/db0/pythorhead"
[tool.setuptools]
license-files = ["LICENSE", "CHANGELOG*"]
[options.index-client]
extra-index-urls = ["https://download.pytorch.org/whl/cu118"]
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
"--import-mode=prepend",
"--ignore=nodes"
]
filterwarnings = [
"ignore:::.*",
"default:::pythorhead.*"
]
testpaths = [
"tests"
]
[tool.black]
line-length = 119
[tool.ruff] # XXX this isn't part of CI yet
line-length=119
exclude=["comfy_controlnet_preprocessors", "facerestore", "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"]
[tool.mypy]
exclude = '''(?x)(
ComfyUI
| \.tox
| comfy_controlnet_preprocessors
| facerestore
)''' # If you change this, you probably need to also change [tool.black] above