-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
81 lines (71 loc) · 2.22 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
[build-system]
requires = ["setuptools>=46.4.0"]
build-backend = "setuptools.build_meta"
[project]
name = "spandrel"
authors = [{ name = "chaiNNer team" }]
description = "Give your project support for a variety of PyTorch model architectures, including auto-detecting model architecture from just .pth files. spandrel gives you arch support."
readme = "README.md"
requires-python = ">=3.8"
keywords = [
"spandrel",
"pytorch architecture",
"pytorch arch",
"model arch",
"model architecture",
]
license = { text = "GPLv3" }
classifiers = [
# see https://pypi.org/classifiers/
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
]
dependencies = ["torch", "torchvision", "safetensors", "numpy", "einops"]
dynamic = ["version"]
[project.optional-dependencies]
build = ["build", "twine"]
lint = ["ruff==0.1.8"]
typecheck = ["pyright==1.1.342"]
test = ["pytest==7.4.0", "syrupy==4.6.0", "opencv-python==4.8.1.78"]
[tool.setuptools]
license-files = ["LICENSE"]
[tool.setuptools.dynamic]
version = { attr = "spandrel.__version__" }
[tool.ruff]
# Same as Black.
line-length = 88
indent-width = 4
src = ["src"]
# ignore vendored code
# extend-exclude = ["src/architectures/**"]
extend-select = [
"UP", # pyupgrade
"E", # pycodestyle
"W", # pycodestyle
"F", # pyflakes
"I", # isort
"FA", # flake8-future-annotations
"N", # pep8-naming
"ANN001",
"ANN002",
]
ignore = [
"E501", # Line too long
"N999", # Invalid module name
"N814", # Camelcase imported as constant
]
[tool.ruff.lint.per-file-ignores]
"**/arch/**/*" = ["N", "ANN"]
"**/__arch_helpers/**/*" = ["N", "ANN"]
"**/tests/**/*" = ["N802", "ANN"]
[tool.pytest.ini_options]
filterwarnings = ["ignore::DeprecationWarning", "ignore::UserWarning"]