forked from yetone/avante.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
50 lines (43 loc) · 798 Bytes
/
ruff.toml
File metadata and controls
50 lines (43 loc) · 798 Bytes
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
# 与 black 保持一致的行长度
line-length = 180
# 排除一些目录
exclude = [
".git",
".ruff_cache",
".venv",
"venv",
"__pycache__",
"build",
"dist",
]
# 目标 Python 版本
target-version = "py312"
[lint]
# 启用所有规则集
select = ["ALL"]
# 忽略一些规则
ignore = [
"A005",
"BLE001",
"D104",
"D100",
"D101",
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
"S603",
"TRY300",
"TRY400",
"PGH003",
"PLR0911",
]
# 允许使用自动修复
fixable = ["ALL"]
[format]
# 使用双引号
quote-style = "double"
# 缩进风格
indent-style = "space"
[lint.isort]
# 与 black 兼容的导入排序设置
combine-as-imports = true
known-first-party = ["avante"]