-
Notifications
You must be signed in to change notification settings - Fork 6
/
ruff.toml
36 lines (34 loc) · 1.03 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
select = [
"E", # PEP8 recommendations
"F", # bugs
"I001", # import sorting
"BLE", # catching root Exception
"A", # built-in shadowing
"C4", # unnecessary comprehensions
"ISC", # implicit string concat
"PIE", # misc useful lints
"Q", # better quoting behavior
"RSE", # no parens on exceptions that lack args
"RET", # more correct return behavior
"SIM", # general style things
"TC", # type-only imports should be in a typecheck block
"ARG", # unused args
"PTH", # use pathlib
"FLY", # short "".join calls
"PERF", # performance hints
"PL", # pylint, general recommendations
# "RUF", # these are a little picky for me
]
ignore = [
"E501", # skip enforcing line length
"E741", # ignore short variable names
"PLR2004", # magic values
"PLR0911", # too many returns
"PLR0912", # too many branches
"PLR0913", # too many arguments
'Q000', # single quotes; handled by formatter
]
unfixable = [
"F401", # don't remove unused imports
"F841", # don't remove unused variables
]