forked from osbuild/osbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
34 lines (26 loc) · 940 Bytes
/
.ruff.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
line-length = 120
extend-exclude = [
"*.json",
]
force-exclude = true
[lint]
# enabled the `isort` and `pylint` additional linters, see `ruff linter` output
# or: https://docs.astral.sh/ruff/rules/
extend-select = ["I", "PL"]
# all of these ignores and their explanatiosn can be found at: https://docs.astral.sh/ruff/rules/
# or the relevant linter documentation
ignore = [
"E741", # pycodestyle: ambiguous variable names
"E501", # pycodestyle: line too long
"PLW0603", # pylint: global statement
"PLR0911", # pylint: too many return statements
"PLR0912", # pylint: too many branches
"PLR0913", # pylint: too many arguments in function definition
"PLR0915", # pylint: too many statements
"PLR2004", # pylint: constant used in comparison
"PLR0402", # pylint: import alias
"PLR5501", # pylint: use elif
"PLW2901", # pylint: redefined loop variable
]
[format]
quote-style = "preserve"