Skip to content

Commit

Permalink
Revamp pylintrc
Browse files Browse the repository at this point in the history
- 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'
  • Loading branch information
praiskup authored and xsuchy committed Aug 30, 2024
1 parent 2770e05 commit c1739fe
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mock/pylintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# mock pylint configuration

[MASTER]
[MAIN]

# Pickle collected data for later comparisons.
persistent=no
Expand Down Expand Up @@ -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]

Expand All @@ -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
Expand All @@ -130,9 +127,6 @@ min-public-methods=1
max-public-methods=20


[CLASSES]


[FORMAT]

# Maximum number of characters on a single line.
Expand Down

0 comments on commit c1739fe

Please sign in to comment.