From c1739fe79cd910ca6abd2d48eb5308dc53cedaa5 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 27 Aug 2024 16:27:39 +0200 Subject: [PATCH] Revamp pylintrc - use the [MAIN] category instead of [MASTER] - fix "Unrecognized option found: max-branchs" - drop bad-functions option: "Unrecognized option found: bad-functions", this one can be enabed explicitly, but we don't seem to need it: 'load-plugins = pylint.extensions.bad_builtin' --- mock/pylintrc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/mock/pylintrc b/mock/pylintrc index 631e833c4..d4601412d 100644 --- a/mock/pylintrc +++ b/mock/pylintrc @@ -1,6 +1,6 @@ # mock pylint configuration -[MASTER] +[MAIN] # Pickle collected data for later comparisons. persistent=no @@ -96,9 +96,6 @@ good-names=i,j,k,ex,Run,_ # Bad variable names which should always be refused, separated by a comma bad-names=foo,bar,baz,toto,tutu,tata -# List of builtins function names that should not be used, separated by a comma -bad-functions=apply,input - [DESIGN] @@ -112,7 +109,7 @@ max-locals=20 max-returns=6 # Maximum number of branch for function / method body -max-branchs=20 +max-branches=20 # Maximum number of statements in function / method body max-statements=50 @@ -130,9 +127,6 @@ min-public-methods=1 max-public-methods=20 -[CLASSES] - - [FORMAT] # Maximum number of characters on a single line.