Skip to content

Commit a7bc69d

Browse files
authored
Update pyproject.toml
1 parent d1b71e9 commit a7bc69d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,11 @@ skip = "*.css,*.js,*.lock"
125125
[tool.ruff]
126126
line-length = 88
127127
target-version = "py313"
128-
select = ["E", "F", "I", "B", "UP", "YTT", "PLC", "PT", "SIM"]
128+
# 移除 "B" 选择器(Ruff 不支持该类别规则)
129+
select = ["E", "F", "I", "UP", "YTT", "PLC", "PT", "SIM"]
129130
ignore = [
130-
"B101", "B904", "B905", "PLC0415",
131+
# 同时移除所有 "B" 类规则的忽略(已无意义)
132+
"B904", "B905", "PLC0415",
131133
"PLW2901", "PT011", "PT018", "PT028",
132134
"S101", "SIM905", "UP038"
133135
]

0 commit comments

Comments
 (0)