-
Notifications
You must be signed in to change notification settings - Fork 208
/
Copy pathruff.toml
39 lines (34 loc) · 869 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
30
31
32
33
34
35
36
37
38
39
line-length = 110
indent-width = 4
target-version = "py38"
[format]
quote-style = "double"
indent-style = "tab"
[lint]
select = [
"F",
"E",
"W",
"I",
"UP",
"B",
"RUF",
"FA",
"TCH",
"C90",
"RET",
"SIM",
]
ignore = [
"UP015", # Unnecessary open mode parameters
"SIM108", # Use ternary operator {contents} instead of if-else-block
"F821", # Undefined name, cause of DF.Literal
"F722", # syntax error in forward type annotation, cause of DF.Literal
"E501", # line too long, cause hooks.py
"W191", # indentation contains tabs, cause when the world zigs, we zag
"B023", # function doesn't bind loop variable - will have last iteration's value
"UP037", # remove quotes from annotations, messes up DF.Literal typing
"SIM103", # return condition directly, readability suffers at times
]
[lint.mccabe]
max-complexity = 8