-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
92 lines (89 loc) · 1.46 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
line-length = 79
indent-width = 4
target-version = "py312"
exclude = ["tests/"]
[lint]
fixable = ["ALL"]
select = [
"F",
"W",
"E",
"I",
#"N" # names,
#"D", # docstrings
"UP",
#"ANN", # annotations
"ASYNC",
#"S", # security
#"BLE" # blind exception
#"FBT", # boolean trap
"B",
"A",
"COM",
# "CPY", # copyright
#"C4", # comprehension
#"DTZ", # datetime
"T10",
#"DJ", # django
#"EM", # error message
#"EXE", # executable
#"FA", # future annotations
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
#"RET", # return
"SLF",
"SLOT",
#"SIM", # simplify
"TID",
"TCH",
"INT",
"ARG",
#"PTH", # pathlib
#"TD, # todos
#"FIX", # fixmes
"ERA",
#"PD", # pandas
#"PGH", # pygrep hooks
"PL",
#"TRY", # excception handling,
#"FLY", # f-strings
"NPY",
#"AIR", # airflow
#"PERF", # performance
#"FURB", # refurb
"LOG",
#"RUF", # ruff specific
]
ignore = [
"B008",
"PLR0913",
"PLR0912",
"PLR2004",
"EM102",
"E501",
"G004",
"RSE102",
"COM812",
"ISC001",
"Q000",
"Q003",
"PLR0915",
"PLR0911",
]
[format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[lint.flake8-quotes]
inline-quotes = "single"