forked from chaiNNer-org/spandrel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
55 lines (50 loc) · 1.6 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
[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"]
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",
"PRIVATE:spandrel.canonicalize_state_dict",
]