-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
96 lines (90 loc) · 1.31 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
93
94
95
96
line-length = 120
target-version = "py310"
[lint]
select = [
"A",
"ARG",
"B",
"C",
"DTZ",
"E",
"EM",
"F",
"FBT",
"I",
"I001",
"ICN",
"ISC",
"N",
"PLC",
"PLE",
"PLR",
"PLW",
"Q",
"RUF",
"S",
"T",
"TID",
"UP",
"W",
"YTT",
]
ignore = [
"B027",
"C901",
"D100",
"D103",
"D205",
"D212",
"D415",
"E203",
"E501",
"FBT001",
"FBT002",
"FBT003",
"ISC001",
"N802",
"N803",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
"S105",
"S106",
"S107",
"ARG001",
"UP007",
]
unfixable = [
"F401",
"UP007",
]
exclude = [
".git",
".hg",
"__pycache__",
"_bin/*",
"_build/*",
"_ig_fbcode_wheel/*",
"buck-out/*",
"third-party-buck/*",
"third-party2/*",
"dist",
".venv",
".nox",
".mypy_cache",
".pytype",
".svn",
"__pypackages__",
]
[lint.per-file-ignores]
"tests/**.py" = ["S101"]
[format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"