Skip to content

Commit e7092a9

Browse files
[pylint] sort the disable alphabetically, remove duplicate
1 parent db1db78 commit e7092a9

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

pyproject.toml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -219,31 +219,30 @@ main.disable = [
219219
"comparison-with-callable",
220220
"comparison-with-itself", # PLR0124 from ruff
221221
"condition-evals-to-constant",
222-
"consider-alternative-union-syntax",
223222
"confusing-consecutive-elif",
223+
"consider-alternative-union-syntax",
224+
"consider-ternary-expression",
224225
"consider-using-assignment-expr",
225226
"consider-using-dict-items",
226-
"consider-using-from-import",
227+
"consider-using-from-import", # not activated by default, PLR0402 disabled in ruff
227228
"consider-using-f-string",
228229
"consider-using-in",
229230
"consider-using-namedtuple-or-dataclass",
230231
"consider-using-ternary",
231232
"consider-using-tuple",
232233
"consider-using-with",
233-
"consider-using-from-import", # not activated by default, PLR0402 disabled in ruff
234-
"consider-ternary-expression",
235234
"cyclic-import",
236-
"differing-param-doc",
237-
"docstring-first-line-empty",
238235
"deprecated-argument",
239236
"deprecated-attribute",
240237
"deprecated-class",
238+
"differing-param-doc",
241239
"disallowed-name", # foo / bar are used often in tests
240+
"docstring-first-line-empty",
242241
"duplicate-code",
243242
"else-if-used", # not activated by default, PLR5501 disabled in ruff
244243
"empty-comment", # not activated by default, PLR2044 disabled in ruff
245-
"eval-used",
246244
"eq-without-hash", # PLW1641 disabled in ruff
245+
"eval-used",
247246
"exec-used",
248247
"expression-not-assigned",
249248
"fixme",
@@ -260,13 +259,13 @@ main.disable = [
260259
"line-too-long",
261260
"magic-value-comparison", # not activated by default, PLR2004 disabled in ruff
262261
"method-hidden",
262+
"misplaced-bare-raise", # PLE0704 from ruff
263+
"misplaced-comparison-constant",
263264
"missing-docstring",
264265
"missing-param-doc",
265266
"missing-raises-doc",
266267
"missing-timeout",
267268
"missing-type-doc",
268-
"misplaced-bare-raise", # PLE0704 from ruff
269-
"misplaced-comparison-constant",
270269
"multiple-statements", # multiple-statements-on-one-line-colon (E701) from ruff
271270
"no-else-break",
272271
"no-else-continue",
@@ -331,10 +330,10 @@ main.disable = [
331330
"use-dict-literal",
332331
"use-implicit-booleaness-not-comparison",
333332
"use-implicit-booleaness-not-len",
334-
"use-set-for-membership",
335333
"useless-else-on-loop", # PLC0414 disabled in ruff
336334
"useless-import-alias",
337335
"useless-return",
336+
"use-set-for-membership",
338337
"using-constant-test",
339338
"while-used",
340339
"wrong-import-order", # handled by isort / ruff

0 commit comments

Comments
 (0)