-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
59 lines (54 loc) · 1.85 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
[tool.ruff]
# Same as Black.
line-length = 88
indent-width = 4
src = ["libs/spandrel", "libs/spandrel_extra_arches"]
lint.extend-select = [
"ANN001",
"ANN002",
"T201", # no print
"B", # bugbear
"C4", # comprehensions
"E", # pycodestyle
"F", # pyflakes
"FA", # flake8-future-annotations
"I", # isort
"N", # pep8-naming
"SIM", # simplify
"UP", # pyupgrade
"W", # pycodestyle
]
lint.ignore = [
"E501", # Line too long
"N814", # Camelcase imported as constant
"N999", # Invalid module name
"SIM105", # `contextlib.suppress()` has a performance cost, so disabled
"SIM108", # Ternary operators can be unreadable, so disabled
"SIM117", # Non-nested with statements make for long lines, so disabled
"SIM118", # `.keys()` might be a false positive, so disabled
]
[tool.ruff.lint.per-file-ignores]
"**/__arch_helpers/**/*" = ["N", "ANN"]
"**/__arch/**/*" = ["B006", "B007", "B008", "N", "ANN", "SIM102", "SIM114"]
"**/{tests,scripts}/**/*" = ["N802", "ANN", "T201"]
[tool.pytest.ini_options]
filterwarnings = ["ignore::DeprecationWarning", "ignore::UserWarning"]
pythonpath = ["libs/spandrel", "libs/spandrel_extra_arches"]
[tool.pydoctor]
project-name = "spandrel"
add-package = ["libs/spandrel/spandrel", "libs/spandrel_extra_arches/spandrel_extra_arches"]
project-url = "https://github.com/chaiNNer-org/spandrel"
docformat = "restructuredtext"
warnings-as-errors = false
make-html = true
html-output = "docs"
theme = "readthedocs"
privacy = [
"HIDDEN:spandrel.__version__",
"HIDDEN:spandrel.__helpers",
"HIDDEN:spandrel.architectures.*.__arch",
"PRIVATE:spandrel.canonicalize_state_dict",
"HIDDEN:spandrel_extra_arches.__version__",
"HIDDEN:spandrel_extra_arches.__helper",
"HIDDEN:spandrel_extra_arches.architectures.*.__arch",
]