#2351 releng: pylintrc fixes for Fedora 37
Merged 2 years ago by praiskup. Opened 2 years ago by praiskup.
Unknown source pylintrc-f37  into  main

file modified
+1 -5
@@ -102,10 +102,6 @@

  # 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]

  

  # Maximum number of arguments for function / method
@@ -118,7 +114,7 @@

  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

file modified
+1 -5
@@ -74,10 +74,6 @@

  # 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]

  

  # Maximum number of arguments for function / method
@@ -90,7 +86,7 @@

  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

On F37 there's pylint-2.14.4-3.fc37.noarch. This started producing a
new warning:

Error: PYLINT_WARNING:
Unrecognized option found: bad-functions, max-branchs

The 'max-branchs' looks like a typo, 'max-branches' works fine (fixed).

Not sure about the 'bad-functions'. I fail to find the corresponding
PyLint change, but I don't think it matters too much (dropped).

Build succeeded.

Commit ae81221 fixes this pull-request

Pull-Request has been merged by praiskup

2 years ago
Metadata