Skip to content

Commit ad1d849

Browse files
[pylint] sort the disable alphabetically, remove duplicate
1 parent a7429ed commit ad1d849

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

pyproject.toml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -220,31 +220,30 @@ disable = [
220220
"comparison-with-callable",
221221
"comparison-with-itself", # PLR0124 from ruff
222222
"condition-evals-to-constant",
223-
"consider-alternative-union-syntax",
224223
"confusing-consecutive-elif",
224+
"consider-alternative-union-syntax",
225+
"consider-ternary-expression",
225226
"consider-using-assignment-expr",
226227
"consider-using-dict-items",
227-
"consider-using-from-import",
228+
"consider-using-from-import", # not activated by default, PLR0402 disabled in ruff
228229
"consider-using-f-string",
229230
"consider-using-in",
230231
"consider-using-namedtuple-or-dataclass",
231232
"consider-using-ternary",
232233
"consider-using-tuple",
233234
"consider-using-with",
234-
"consider-using-from-import", # not activated by default, PLR0402 disabled in ruff
235-
"consider-ternary-expression",
236235
"cyclic-import",
237-
"differing-param-doc",
238-
"docstring-first-line-empty",
239236
"deprecated-argument",
240237
"deprecated-attribute",
241238
"deprecated-class",
239+
"differing-param-doc",
242240
"disallowed-name", # foo / bar are used often in tests
241+
"docstring-first-line-empty",
243242
"duplicate-code",
244243
"else-if-used", # not activated by default, PLR5501 disabled in ruff
245244
"empty-comment", # not activated by default, PLR2044 disabled in ruff
246-
"eval-used",
247245
"eq-without-hash", # PLW1641 disabled in ruff
246+
"eval-used",
248247
"exec-used",
249248
"expression-not-assigned",
250249
"fixme",
@@ -261,13 +260,13 @@ disable = [
261260
"line-too-long",
262261
"magic-value-comparison", # not activated by default, PLR2004 disabled in ruff
263262
"method-hidden",
263+
"misplaced-bare-raise", # PLE0704 from ruff
264+
"misplaced-comparison-constant",
264265
"missing-docstring",
265266
"missing-param-doc",
266267
"missing-raises-doc",
267268
"missing-timeout",
268269
"missing-type-doc",
269-
"misplaced-bare-raise", # PLE0704 from ruff
270-
"misplaced-comparison-constant",
271270
"multiple-statements", # multiple-statements-on-one-line-colon (E701) from ruff
272271
"no-else-break",
273272
"no-else-continue",
@@ -332,10 +331,10 @@ disable = [
332331
"use-dict-literal",
333332
"use-implicit-booleaness-not-comparison",
334333
"use-implicit-booleaness-not-len",
335-
"use-set-for-membership",
336334
"useless-else-on-loop", # PLC0414 disabled in ruff
337335
"useless-import-alias",
338336
"useless-return",
337+
"use-set-for-membership",
339338
"using-constant-test",
340339
"while-used",
341340
"wrong-import-order", # handled by isort / ruff

0 commit comments

Comments
 (0)