-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathruff.toml
More file actions
33 lines (31 loc) · 782 Bytes
/
ruff.toml
File metadata and controls
33 lines (31 loc) · 782 Bytes
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
target-version = 'py38'
# Separate repo used as a submodule, ignore it
extend-exclude = ['boot-utils']
[format]
quote-style = 'preserve'
# https://docs.astral.sh/ruff/rules/
[lint]
select = [
'A', # flake8-builtins
'ARG', # flake8-unused-arguments
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'E', # pycodestyle
'F', # pyflakes
'PIE', # flake8-pie
'PL', # pylint
'RET', # flake8-return
'RUF', # ruff
'SIM', # flake8-simplify
'SLF', # flake8-self
'UP', # pyupgrade
'W', # pycodestyle
]
ignore = [
'E501', # line-too-long
'PLR0911', # too-many-return-statments
'PLR0912', # too-many-branches
'PLR0913', # too-many-arguments
'PLR0915', # too-many-statements
'PLR2004', # magic-value-comparison
]