-
Notifications
You must be signed in to change notification settings - Fork 43
/
pyproject.toml
90 lines (85 loc) · 1.94 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
[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", # assert raises exception
"B026", # star arg unpacking after keyword arg
"B904", # raise without from inside except
"C408", # unnecessary collection call (would prohibit dict())
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D200",
"D203",
"D205",
"D212",
"D213",
"D400",
"D401",
"D404",
"D415",
"E741", # ambiguous variable name
"NPY002", # numpy-legacy-random
"PT011", # pytest-raises-too-broad
"PT012", # pytest-raises-with-multiple-statements
"PT017", # pytest-assert-in-except
"RET503", # implict-return on function that can return non-none
"RET504", # unncessary-assign before return
]
line-length = 100
lint.select = [
"ASYNC",
"B", # bugbear
"C4",
"C90", # mccabe
"COM",
"D", # pydocstyle
"DTZ",
"E", # pycodestyle errors
"EM",
"EXE",
"F", # pyflakes
"G",
# "I", # isort
"ISC",
# "N", # pep8-naming
"NPY",
"PIE",
"PT",
"PYI",
"Q", # flake8-quotes
"RET",
"RSE",
"T", # print statements
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
[tool.ruff.lint.per-file-ignores]
# allow "useless expressions" as it shows output
# allow non-top level imports
# allow long lines
".circleci/dcm4chee/*.py" = ["T201", "T203"]
"docs/*.ipynb" = ["B018", "E402", "E501", "T201", "T203"]
"docs/*.py" = ["E501", "T201", "T203"]
"examples/*" = ["T201", "T203"]
"test/*" = ["T201", "T203"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.mccabe]
max-complexity = 14
[tool.yamlfix]
line_length = 200
preserve_quotes = true
sequence_style = "block_style"