generated from xavdid/advent-of-code-python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
29 lines (27 loc) · 785 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
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
"TCH", # type-only imports should be in a typecheck block
"ARG", # unused args
"PTH", # use pathlib
"FLY", # short "".join calls
"PERF", # performance hints
]
ignore = [
"E501", # skip enforcing line length
"E741", # ignore short variable names
]
unfixable = [
"F401", # don't remove unused imports
"F841", # don't remove unused variables
]