pylintrc 2.04 KB
Newer Older
Michael Hanselmann's avatar
Michael Hanselmann committed
1 2 3 4 5 6 7 8 9 10 11 12 13
# Configuration file for pylint (http://www.logilab.org/project/pylint). See
# http://www.logilab.org/card/pylintfeatures for more detailed variable
# descriptions.

[MASTER]
profile = no
ignore =
persistent = no
cache-size = 50000
load-plugins =

[REPORTS]
output-format = colorized
Iustin Pop's avatar
Iustin Pop committed
14
include-ids = yes
Michael Hanselmann's avatar
Michael Hanselmann committed
15 16 17 18 19 20 21
files-output = no
reports = no
evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
comment = yes

[BASIC]
required-attributes =
Iustin Pop's avatar
Iustin Pop committed
22 23 24 25
# disabling docstring checks since we have way too many without (complex
# inheritance hierarchies)
#no-docstring-rgx = __.*__
no-docstring-rgx = .*
Michael Hanselmann's avatar
Michael Hanselmann committed
26
module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
Iustin Pop's avatar
Iustin Pop committed
27 28
# added lower-case names
const-rgx = ((_{0,2}[A-Z][A-Z0-9_]*)|(__.*__)|(_?[a-z_][a-z0-9_]*))$
Michael Hanselmann's avatar
Michael Hanselmann committed
29
class-rgx = _?[A-Z][a-zA-Z0-9]+$
Iustin Pop's avatar
Iustin Pop committed
30 31 32 33
# added lower-case names
function-rgx = (_?([A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*)|main|([a-z_][a-z0-9_]*))$
# add lower-case names, since derived classes must obey method names
method-rgx = (_{0,2}[A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*|__.*__|([a-z_][a-z0-9_]*))$
Michael Hanselmann's avatar
Michael Hanselmann committed
34 35
attr-rgx = [a-z_][a-z0-9_]{1,30}$
argument-rgx = [a-z_][a-z0-9_]*$
Iustin Pop's avatar
Iustin Pop committed
36
variable-rgx = (_?([a-z_][a-z0-9_]*)|(_?[A-Z0-9_]+))$
Michael Hanselmann's avatar
Michael Hanselmann committed
37 38 39
inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
good-names = i,j,k,_
bad-names = foo,bar,baz,toto,tutu,tata
40
bad-functions = xrange
Michael Hanselmann's avatar
Michael Hanselmann committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

[TYPECHECK]
ignore-mixin-members = yes
zope = no
acquired-members =

[VARIABLES]
init-import = no
dummy-variables-rgx = _
additional-builtins =

[CLASSES]
ignore-iface-methods =
defining-attr-methods = __init__,__new__,setUp

[DESIGN]
Iustin Pop's avatar
Iustin Pop committed
57 58 59 60 61
max-args = 15
max-locals = 50
max-returns = 10
max-branchs = 80
max-statements = 200
Michael Hanselmann's avatar
Michael Hanselmann committed
62
max-parents = 7
Iustin Pop's avatar
Iustin Pop committed
63 64 65 66
max-attributes = 20
# zero as struct-like (PODS) classes don't export any methods
min-public-methods = 0
max-public-methods = 50
Michael Hanselmann's avatar
Michael Hanselmann committed
67 68 69 70 71 72 73 74 75

[IMPORTS]
deprecated-modules = regsub,string,TERMIOS,Bastion,rexec
import-graph =
ext-import-graph =
int-import-graph =

[FORMAT]
max-line-length = 80
Iustin Pop's avatar
Iustin Pop committed
76
max-module-lines = 10000
Michael Hanselmann's avatar
Michael Hanselmann committed
77 78 79 80 81 82 83 84 85
indent-string = "  "

[MISCELLANEOUS]
notes = FIXME,XXX,TODO

[SIMILARITIES]
min-similarity-lines = 4
ignore-comments = yes
ignore-docstrings = yes