-
Notifications
You must be signed in to change notification settings - Fork 24
/
pyproject.toml
40 lines (35 loc) · 1.33 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
[tool.ruff]
line-length = 100
target-version = "py38"
[tool.ruff.lint]
select = ["W", "E", "F", "I", "PL"]
ignore = [
"E711", # comparison to None should be 'if cond is None:'
"E712", # comparison to False should be 'if cond is False:' or 'if not cond:'
"E721", # do not compare types, use 'isinstance()'
"E731", # do not assign a lambda expression, use a def
"E741", # ambiguous variable name
"E501", # line too long (we rely on ruff format for that)
"PLR0904", # too-many-public-methods
"PLR0911", # too-many-return-statements
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0914", # too-many-locals
"PLR0915", # too-many-statements
"PLC0415", # import-outside-toplevel
"PLW0603", # global-statement
"PLW1501", # bad-open-mode
"PLR1711", # useless-return
"PLW1514", # unspecified-encoding
"PLR5501", # collapsible-else-if
# maybe we should fix these?
"PLR2004", # magic-value-comparison
"PLW2901", # redefined-loop-name
]
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["buildbot", "buildbot_worker"]
[tool.ruff.format]
preview = true # needed for quote-style
quote-style = "preserve"