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 # Add files or directories to the blacklist. They should be base names, not
11 # paths.
12 ignore=lib/exabgp/dep/,lib/netlink/
13
14 # Pickle collected data for later comparisons.
15 persistent=yes
16
17 # List of plugins (as comma separated values of python modules names) to load,
18 # usually to register additional checkers.
19 load-plugins=
20
21 # DEPRECATED
22 #include-ids=no
23
24 # DEPRECATED
25 #symbols=no
26
27 # Use multiple processes to speed up Pylint.
28 jobs=1
29
30 # Allow loading of arbitrary C extensions. Extensions are imported into the
31 # active Python interpreter and may run arbitrary code.
32 unsafe-load-any-extension=no
33
34 # A comma-separated list of package or module names from where C extensions may
35 # be loaded. Extensions are loading into the active Python interpreter and may
36 # run arbitrary code
37 extension-pkg-whitelist=
38
39
40 [MESSAGES CONTROL]
41
42 # Only show warnings with the listed confidence levels. Leave empty to show
43 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
44 confidence=
45
46 # Enable the message, report, category or checker with the given id(s). You can
47 # either give multiple identifier separated by comma (,) or put this option
48 # multiple time. See also the "--disable" option for examples.
49 #enable=
50
51 # Disable the message, report, category or checker with the given id(s). You
52 # can either give multiple identifiers separated by comma (,) or put this
53 # option multiple times (only on the command line, not in the configuration
54 # file where it should appear only once).You can also use "--disable=all" to
55 # disable everything first and then reenable specific checks. For example, if
56 # you want to run only the similarities checker, you can use "--disable=all
57 # --enable=similarities". If you want to run only the classes checker, but have
58 # no Warning level messages displayed, use"--disable=all --enable=classes
59 # --disable=W"
60 #disable=
61 #disable=C0111,C0326,C0330,W0312
62 disable=C0111,C0326,C0330,W0191,W0312,W0511,E0121,E0502,E0203,E0211,E0221,E0272,E0225,E0231,E0302,E0303,E0501,E0701
63
64 # C0326,W191,E121,E502,E203,E211,0326,W191,E121,E502,E203,E211,E221,E272,E225,E231,E302,E303,E501,E701
65
66 # http://pylint-messages.wikidot.com/messages:<CODE>
67 # C0111: Missing %s docstring
68 # C0326: No space allowed before bracket ( def function (args) )
69 # C0330: Wrong hanging indentation
70 # W0312: Found indentation with tabs instead of spaces
71
72 [REPORTS]
73
74 # Set the output format. Available formats are text, parseable, colorized, msvs
75 # (visual studio) and html. You can also give a reporter class, eg
76 # mypackage.mymodule.MyReporterClass.
77 output-format=colorized
78
79 # Put messages in a separate file for each module / package specified on the
80 # command line instead of printing them on stdout. Reports (if any) will be
81 # written in a file name "pylint_global.[txt|html]".
82 files-output=no
83
84 # Tells whether to display a full report or only the messages
85 reports=yes
86
87 # Python expression which should return a note less than 10 (10 is the highest
88 # note). You have access to the variables errors warning, statement which
89 # respectively contain the number of errors / warnings messages and the total
90 # number of statements analyzed. This is used by the global evaluation report
91 # (RP0004).
92 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
93
94 # Template used to display messages. This is a python new-style format string
95 # used to format the message information. See doc for all details
96 #msg-template=
97
98
99 [BASIC]
100
101 # List of builtins function names that should not be used, separated by a comma
102 bad-functions=map,filter,input
103
104 # Good variable names which should always be accepted, separated by a comma
105 good-names=i,j,k,ex,Run,_,up,io,fd,ip
106
107 # Bad variable names which should always be refused, separated by a comma
108 bad-names=foo,bar,baz,toto,tutu,tata
109
110 # Colon-delimited sets of names that determine each other's naming style when
111 # the name regexes allow several styles.
112 name-group=
113
114 # Include a hint for the correct naming format with invalid-name
115 include-naming-hint=no
116
117 # Regular expression matching correct function names
118 function-rgx=[a-z_][a-z0-9_]{2,30}$
119
120 # Naming hint for function names
121 function-name-hint=[a-z_][a-z0-9_]{2,30}$
122
123 # Regular expression matching correct variable names
124 variable-rgx=[a-z_][a-z0-9_]{2,30}|[a-z]$
125
126 # Naming hint for variable names
127 variable-name-hint=[a-z_][a-z0-9_]{2,30}$
128
129 # Regular expression matching correct constant names
130 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
131
132 # Naming hint for constant names
133 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
134
135 # Regular expression matching correct attribute names
136 attr-rgx=[a-z_][a-z0-9_]{2,30}$
137
138 # Naming hint for attribute names
139 attr-name-hint=[a-z_][a-z0-9_]{2,30}$
140
141 # Regular expression matching correct argument names
142 argument-rgx=[a-z_][a-z0-9_]{2,30}$
143
144 # Naming hint for argument names
145 argument-name-hint=[a-z_][a-z0-9_]{2,30}$
146
147 # Regular expression matching correct class attribute names
148 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
149
150 # Naming hint for class attribute names
151 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
152
153 # Regular expression matching correct inline iteration names
154 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
155
156 # Naming hint for inline iteration names
157 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
158
159 # Regular expression matching correct class names
160 class-rgx=[A-Z_][a-zA-Z0-9]+$
161
162 # Naming hint for class names
163 class-name-hint=[A-Z_][a-zA-Z0-9]+$
164
165 # Regular expression matching correct module names
166 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
167
168 # Naming hint for module names
169 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
170
171 # Regular expression matching correct method names
172 method-rgx=[a-z_][a-z0-9_]{2,30}$
173
174 # Naming hint for method names
175 method-name-hint=[a-z_][a-z0-9_]{2,30}$
176
177 # Regular expression which should only match function or class names that do
178 # not require a docstring.
179 no-docstring-rgx=__.*__
180
181 # Minimum line length for functions/classes that require docstrings, shorter
182 # ones are exempt.
183 docstring-min-length=-1
184
185
186 [FORMAT]
187
188 # Maximum number of characters on a single line.
189 max-line-length=160
190
191 # Regexp for a line that is allowed to be longer than the limit.
192 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
193
194 # Allow the body of an if to be on the same line as the test if there is no
195 # else.
196 single-line-if-stmt=yes
197
198 # List of optional constructs for which whitespace checking is disabled
199 no-space-check=trailing-comma,dict-separator
200
201 # Maximum number of lines in a module
202 max-module-lines=1000
203
204 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
205 # tab).
206 indent-string='\t'
207
208 # Number of spaces of indent required inside a hanging or continued line.
209 indent-after-paren=4
210
211 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
212 expected-line-ending-format=
213
214
215 [LOGGING]
216
217 # Logging modules to check that the string format arguments are in logging
218 # function parameter format
219 logging-modules=logging
220
221
222 [MISCELLANEOUS]
223
224 # List of note tags to take in consideration, separated by a comma.
225 notes=FIXME,XXX,TODO
226
227
228 [SIMILARITIES]
229
230 # Minimum lines number of a similarity.
231 min-similarity-lines=8
232
233 # Ignore comments when computing similarities.
234 ignore-comments=yes
235
236 # Ignore docstrings when computing similarities.
237 ignore-docstrings=yes
238
239 # Ignore imports when computing similarities.
240 ignore-imports=no
241
242
243 [SPELLING]
244
245 # Spelling dictionary name. Available dictionaries: none. To make it working
246 # install python-enchant package.
247 spelling-dict=
248
249 # List of comma separated words that should not be checked.
250 spelling-ignore-words=
251
252 # A path to a file that contains private dictionary; one word per line.
253 spelling-private-dict-file=
254
255 # Tells whether to store unknown words to indicated private dictionary in
256 # --spelling-private-dict-file option instead of raising a message.
257 spelling-store-unknown-words=no
258
259
260 [TYPECHECK]
261
262 # Tells whether missing members accessed in mixin class should be ignored. A
263 # mixin class is detected if its name ends with "mixin" (case insensitive).
264 ignore-mixin-members=yes
265
266 # List of module names for which member attributes should not be checked
267 # (useful for modules/projects where namespaces are manipulated during runtime
268 # and thus existing member attributes cannot be deduced by static analysis
269 ignored-modules=
270
271 # List of classes names for which member attributes should not be checked
272 # (useful for classes with attributes dynamically set).
273 ignored-classes=SQLObject,Enumeration
274
275 # List of members which are set dynamically and missed by pylint inference
276 # system, and so shouldn't trigger E0201 when accessed. Python regular
277 # expressions are accepted.
278 generated-members=REQUEST,acl_users,aq_parent
279
280
281 [VARIABLES]
282
283 # Tells whether we should check for unused import in __init__ files.
284 init-import=no
285
286 # A regular expression matching the name of dummy variables (i.e. expectedly
287 # not used).
288 dummy-variables-rgx=_$|dummy
289
290 # List of additional names supposed to be defined in builtins. Remember that
291 # you should avoid to define new builtins when possible.
292 additional-builtins=
293
294 # List of strings which can identify a callback function by name. A callback
295 # name must start or end with one of those strings.
296 callbacks=cb_,_cb
297
298
299 [CLASSES]
300
301 # List of interface methods to ignore, separated by a comma. This is used for
302 # instance to not check methods defines in Zope's Interface base class.
303 # ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
304
305 # List of method names used to declare (i.e. assign) instance attributes.
306 defining-attr-methods=__init__,__new__,setUp
307
308 # List of valid names for the first argument in a class method.
309 valid-classmethod-first-arg=cls
310
311 # List of valid names for the first argument in a metaclass class method.
312 valid-metaclass-classmethod-first-arg=mcs
313
314 # List of member names, which should be excluded from the protected access
315 # warning.
316 exclude-protected=_asdict,_fields,_replace,_source,_make
317
318
319 [DESIGN]
320
321 # Maximum number of arguments for function / method
322 max-args=5
323
324 # Argument names that match this expression will be ignored. Default to name
325 # with leading underscore
326 ignored-argument-names=_.*
327
328 # Maximum number of locals for function / method body
329 max-locals=15
330
331 # Maximum number of return / yield for function / method body
332 max-returns=6
333
334 # Maximum number of branch for function / method body
335 max-branches=12
336
337 # Maximum number of statements in function / method body
338 max-statements=50
339
340 # Maximum number of parents for a class (see R0901).
341 max-parents=7
342
343 # Maximum number of attributes for a class (see R0902).
344 max-attributes=7
345
346 # Minimum number of public methods for a class (see R0903).
347 min-public-methods=2
348
349 # Maximum number of public methods for a class (see R0904).
350 max-public-methods=20
351
352
353 [IMPORTS]
354
355 # Deprecated modules which should not be used, separated by a comma
356 deprecated-modules=regsub,TERMIOS,Bastion,rexec
357
358 # Create a graph of every (i.e. internal and external) dependencies in the
359 # given file (report RP0402 must not be disabled)
360 import-graph=
361
362 # Create a graph of external dependencies in the given file (report RP0402 must
363 # not be disabled)
364 ext-import-graph=
365
366 # Create a graph of internal dependencies in the given file (report RP0402 must
367 # not be disabled)
368 int-import-graph=
369
370
371 [EXCEPTIONS]
372
373 # Exceptions that will emit a warning when being caught. Defaults to
374 # "Exception"
375 overgeneral-exceptions=Exception