-
Notifications
You must be signed in to change notification settings - Fork 39
/
pyproject.toml
74 lines (70 loc) · 1.2 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.ruff]
include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]
exclude = [
"build",
"*/web_client/*",
"*/*egg*/*",
]
lint.ignore = [
"B017",
"B026",
"B904",
"B905",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D200",
"D203",
"D205",
"D212",
"D213",
"D400",
"D401",
"D404",
"D415",
"E741",
"C408",
"PT011",
"PT012",
"PT017",
]
line-length = 100
lint.select = [
"B", # bugbear
"C90", # mccabe
"D", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"Q", # flake8-quotes
# "I", # isort
"W", # pycodestyle warnings
"YTT",
"ASYNC",
"COM",
"C4",
"EM",
"EXE",
"ISC",
"G",
"PIE",
"PYI",
"PT",
"RSE",
]
[tool.ruff.lint.per-file-ignores]
# allow "useless expressions" as it shows output
# allow non-top level imports
# allow long lines
"docs/large_image_examples.ipynb" = ["B018", "E402", "E501"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.mccabe]
max-complexity = 14