-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
48 lines (42 loc) · 1.04 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
line-length = 160
target-version = "py311"
preview = true
[lint]
# https://docs.astral.sh/ruff/rules/
select = [
"E", # pycodestyle
"F", # PyFlakes
"I", # isort
"C90", # mccabe
"T20", # flake8-print
"T10", # flake8-debugger
"YTT", # flake8-2020
"SIM", # flake8-simplify
"PL", # pylint
"FLY", # flynt
"UP", # pyupgrade
"PERF", # perflint
"RUF100", # unused noqa
]
ignore = [
# "E501", # line-too-long
"E203",
"PERF203", # try-except-in-loop
"PLR0913", # pylint.max-args
"PLR0914", # pylint.max-locals
"PLR0915", # pylint.max-statements
"PLR2004", # pylint.magic-value-comparison
"PLW1510", # pylint.subprocess-run-without-check
"SIM108", # if-else-block-instead-of-if-exp
"T201", # print
]
[lint.flake8-builtins]
builtins-ignorelist = ["E203", "W503"]
[lint.isort]
case-sensitive = false
force-single-line = true
lines-after-imports = 2
lines-between-types = 1
order-by-type = false
[lint.mccabe]
max-complexity = 10