Debian Codegraph @

pylintrc

raw
1 [MASTER]
2
3 # Specify a configuration file.
4 #rcfile=
5
6 # Python code to execute, usually for sys.path manipulation such as
7 # pygtk.require().
8 #init-hook=
9
10 # Profiled execution.
11 profile=no
12
13 # Add <file or directory> to the black list. It should be a base name, not a
14 # path. You may set this option multiple times.
15 ignore=CVS
16
17 # Pickle collected data for later comparisons.
18 persistent=yes
19
20 # List of plugins (as comma separated values of python modules names) to load,
21 # usually to register additional checkers.
22 load-plugins=
23
24
25 [MESSAGES CONTROL]
26
27 # Enable the message, report, category or checker with the given id(s). You can
28 # either give multiple identifier separated by comma (,) or put this option
29 # multiple time.
30 #enable=
31
32 # Disable the message, report, category or checker with the given id(s). You
33 # can either give multiple identifier separated by comma (,) or put this option
34 # multiple time (only on the command line, not in the configuration file where
35 # it should appear only once).
36 # :E1103: *%s %r has no %r member (but some types could not be inferred)*
37 # :W0142: *Used * or ** magic*
38 # :W0703: *Catch "Exception"*
39 # :R0903: *Too few public methods (%s/%s)*
40 # :R0922: *Abstract class is only referenced 1 times*
41 # :E1101: *Used when a variable is accessed for an unexistent member. This message belongs to the typecheck checker.* (many false positive)
42
43 disable=E1103,W0142,W0703,R0903,R0922,E1101
44
45
46 [REPORTS]
47
48 # Set the output format. Available formats are text, parseable, colorized, msvs
49 # (visual studio) and html
50 output-format=text
51
52 # Include message's id in output
53 include-ids=yes
54
55 # Put messages in a separate file for each module / package specified on the
56 # command line instead of printing them on stdout. Reports (if any) will be
57 # written in a file name "pylint_global.[txt|html]".
58 files-output=no
59
60 # Tells whether to display a full report or only the messages
61 reports=yes
62
63 # Python expression which should return a note less than 10 (10 is the highest
64 # note). You have access to the variables errors warning, statement which
65 # respectively contain the number of errors / warnings messages and the total
66 # number of statements analyzed. This is used by the global evaluation report
67 # (RP0004).
68 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
69
70 # Add a comment according to your evaluation note. This is used by the global
71 # evaluation report (RP0004).
72 comment=yes
73
74
75 [SIMILARITIES]
76
77 # Minimum lines number of a similarity.
78 min-similarity-lines=4
79
80 # Ignore comments when computing similarities.
81 ignore-comments=yes
82
83 # Ignore docstrings when computing similarities.
84 ignore-docstrings=yes
85
86
87 [TYPECHECK]
88
89 # Tells whether missing members accessed in mixin class should be ignored. A
90 # mixin class is detected if its name ends with "mixin" (case insensitive).
91 ignore-mixin-members=yes
92
93 # List of classes names for which member attributes should not be checked
94 # (useful for classes with attributes dynamically set).
95 ignored-classes=SQLObject
96
97 # When zope mode is activated, add a predefined set of Zope acquired attributes
98 # to generated-members.
99 zope=no
100
101 # List of members which are set dynamically and missed by pylint inference
102 # system, and so shouldn't trigger E0201 when accessed.
103 generated-members=REQUEST,acl_users,aq_parent
104
105
106 [VARIABLES]
107
108 # Tells whether we should check for unused import in __init__ files.
109 init-import=no
110
111 # A regular expression matching the beginning of the name of dummy variables
112 # (i.e. not used).
113 dummy-variables-rgx=_|dummy
114
115 # List of additional names supposed to be defined in builtins. Remember that
116 # you should avoid to define new builtins when possible.
117 additional-builtins=
118
119
120 [MISCELLANEOUS]
121
122 # List of note tags to take in consideration, separated by a comma.
123 notes=FIXME,XXX,TODO
124
125
126 [FORMAT]
127
128 # Maximum number of characters on a single line.
129 max-line-length=80
130
131 # Maximum number of lines in a module
132 max-module-lines=1000
133
134 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
135 # tab).
136 indent-string=' '
137
138
139 [BASIC]
140
141 # Required attributes for module, separated by a comma
142 required-attributes=
143
144 # List of builtins function names that should not be used, separated by a comma
145 bad-functions=map,filter,apply,input
146
147 # Regular expression which should only match correct module names
148 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
149
150 # Regular expression which should only match correct module level names
151 const-rgx=(([A-Z_][A-Z0-9_]*)|[a-z_][a-z0-9_]{2,30}$|[A-Z_][a-zA-Z0-9]+$|(__.*__))$
152
153 # Regular expression which should only match correct class names
154 class-rgx=[A-Z_][a-zA-Z0-9]+$
155
156 # Regular expression which should only match correct function names
157 function-rgx=[a-z_][a-z0-9_]{2,30}$
158
159 # Regular expression which should only match correct method names
160 method-rgx=[a-z_][a-z0-9_]{2,30}$
161
162 # Regular expression which should only match correct instance attribute names
163 attr-rgx=[a-z_][a-z0-9_]{2,30}$
164
165 # Regular expression which should only match correct argument names
166 argument-rgx=[a-z_][a-z0-9_]{2,30}$
167
168 # Regular expression which should only match correct variable names
169 variable-rgx=[a-z_][a-z0-9_]{2,30}$
170
171 # Regular expression which should only match correct list comprehension /
172 # generator expression variable names
173 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
174
175 # Good variable names which should always be accepted, separated by a comma
176 good-names=i,j,k,ex,Run,_
177
178 # Bad variable names which should always be refused, separated by a comma
179 bad-names=foo,bar,baz,toto,tutu,tata
180
181 # Regular expression which should only match functions or classes name which do
182 # not require a docstring
183 no-docstring-rgx=__.*__
184
185
186 [IMPORTS]
187
188 # Deprecated modules which should not be used, separated by a comma
189 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
190
191 # Create a graph of every (i.e. internal and external) dependencies in the
192 # given file (report RP0402 must not be disabled)
193 import-graph=
194
195 # Create a graph of external dependencies in the given file (report RP0402 must
196 # not be disabled)
197 ext-import-graph=
198
199 # Create a graph of internal dependencies in the given file (report RP0402 must
200 # not be disabled)
201 int-import-graph=
202
203
204 [DESIGN]
205
206 # Maximum number of arguments for function / method
207 max-args=5
208
209 # Argument names that match this expression will be ignored. Default to name
210 # with leading underscore
211 ignored-argument-names=_.*
212
213 # Maximum number of locals for function / method body
214 max-locals=15
215
216 # Maximum number of return / yield for function / method body
217 max-returns=6
218
219 # Maximum number of branch for function / method body
220 max-branchs=12
221
222 # Maximum number of statements in function / method body
223 max-statements=50
224
225 # Maximum number of parents for a class (see R0901).
226 max-parents=7
227
228 # Maximum number of attributes for a class (see R0902).
229 max-attributes=7
230
231 # Minimum number of public methods for a class (see R0903).
232 min-public-methods=2
233
234 # Maximum number of public methods for a class (see R0904).
235 max-public-methods=20
236
237
238 [CLASSES]
239
240 # List of interface methods to ignore, separated by a comma. This is used for
241 # instance to not check methods defines in Zope's Interface base class.
242 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
243
244 # List of method names used to declare (i.e. assign) instance attributes.
245 defining-attr-methods=__init__,__new__,setUp