Debian Codegraph @

.pylintrc

raw
1 # =============================================================================
2 # PYLINT CONFIGURATION
3 # =============================================================================
4 # PYLINT-VERSION: 1.5.x
5 # SEE ALSO: http://www.pylint.org/
6 # =============================================================================
7
8 [MASTER]
9
10 # Specify a configuration file.
11 #rcfile=.pylintrc
12
13 # Python code to execute, usually for sys.path manipulation such as
14 # pygtk.require().
15 #init-hook=
16
17 # Add files or directories to the blacklist. They should be base names, not
18 # paths.
19 ignore=.git
20
21 # Pickle collected data for later comparisons.
22 persistent=yes
23
24 # List of plugins (as comma separated values of python modules names) to load,
25 # usually to register additional checkers.
26 load-plugins=
27
28 # Use multiple processes to speed up Pylint.
29 jobs=1
30
31 # Allow loading of arbitrary C extensions. Extensions are imported into the
32 # active Python interpreter and may run arbitrary code.
33 unsafe-load-any-extension=no
34
35 # A comma-separated list of package or module names from where C extensions may
36 # be loaded. Extensions are loading into the active Python interpreter and may
37 # run arbitrary code
38 extension-pkg-whitelist=
39
40 # Allow optimization of some AST trees. This will activate a peephole AST
41 # optimizer, which will apply various small optimizations. For instance, it can
42 # be used to obtain the result of joining multiple strings with the addition
43 # operator. Joining a lot of strings can lead to a maximum recursion error in
44 # Pylint and this flag can prevent that. It has one side effect, the resulting
45 # AST will be different than the one from reality.
46 optimize-ast=no
47
48
49 [MESSAGES CONTROL]
50
51 # Only show warnings with the listed confidence levels. Leave empty to show
52 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
53 confidence=
54
55 # Enable the message, report, category or checker with the given id(s). You can
56 # either give multiple identifier separated by comma (,) or put this option
57 # multiple time. See also the "--disable" option for examples.
58 #enable=
59
60 # Disable the message, report, category or checker with the given id(s). You
61 # can either give multiple identifiers separated by comma (,) or put this
62 # option multiple times (only on the command line, not in the configuration
63 # file where it should appear only once).You can also use "--disable=all" to
64 # disable everything first and then reenable specific checks. For example, if
65 # you want to run only the similarities checker, you can use "--disable=all
66 # --enable=similarities". If you want to run only the classes checker, but have
67 # no Warning level messages displayed, use"--disable=all --enable=classes
68 # --disable=W"
69 disable=import-star-module-level,old-octal-literal,oct-method,print-statement,unpacking-in-except,parameter-unpacking,backtick,old-raise-syntax,old-ne-operator,long-suffix,dict-view-method,dict-iter-method,metaclass-assignment,next-method-called,raising-string,indexing-exception,raw_input-builtin,long-builtin,file-builtin,execfile-builtin,coerce-builtin,cmp-builtin,buffer-builtin,basestring-builtin,apply-builtin,filter-builtin-not-iterating,unused-variable,using-cmp-argument,useless-suppression,range-builtin-not-iterating,suppressed-message,missing-docstring,no-absolute-import,old-division,cmp-method,reload-builtin,zip-builtin-not-iterating,intern-builtin,unichr-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,input-builtin,too-few-public-methods,round-builtin,locally-disabled,hex-method,nonzero-method,map-builtin-not-iterating
70
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=text
78 output-format=colorized
79
80 # Put messages in a separate file for each module / package specified on the
81 # command line instead of printing them on stdout. Reports (if any) will be
82 # written in a file name "pylint_global.[txt|html]".
83 files-output=no
84
85 # Tells whether to display a full report or only the messages
86 reports=yes
87
88 # Python expression which should return a note less than 10 (10 is the highest
89 # note). You have access to the variables errors warning, statement which
90 # respectively contain the number of errors / warnings messages and the total
91 # number of statements analyzed. This is used by the global evaluation report
92 # (RP0004).
93 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
94
95 # Template used to display messages. This is a python new-style format string
96 # used to format the message information. See doc for all details
97 #msg-template=
98
99
100 [BASIC]
101
102 # List of builtins function names that should not be used, separated by a comma
103 bad-functions=map,filter,apply,input
104
105 # Good variable names which should always be accepted, separated by a comma
106 good-names=c,d,f,h,i,j,k,m,n,o,p,r,s,v,w,x,y,e,ex,kw,up,_
107
108 # Bad variable names which should always be refused, separated by a comma
109 bad-names=foo,bar,baz,toto,tutu,tata
110
111 # Colon-delimited sets of names that determine each other's naming style when
112 # the name regexes allow several styles.
113 name-group=
114
115 # Include a hint for the correct naming format with invalid-name
116 include-naming-hint=yes
117
118 # Regular expression matching correct function names
119 function-rgx=[a-z_][a-z0-9_]{2,40}$
120
121 # Naming hint for function names
122 function-name-hint=[a-z_][a-z0-9_]{2,40}$
123
124 # Regular expression matching correct variable names
125 variable-rgx=[a-z_][a-z0-9_]{2,40}$
126
127 # Naming hint for variable names
128 variable-name-hint=[a-z_][a-z0-9_]{2,40}$
129
130 # Regular expression matching correct constant names
131 const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$
132
133 # Naming hint for constant names
134 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
135
136 # Regular expression matching correct attribute names
137 attr-rgx=[a-z_][a-z0-9_]{2,30}$
138
139 # Naming hint for attribute names
140 attr-name-hint=[a-z_][a-z0-9_]{2,30}$
141
142 # Regular expression matching correct argument names
143 argument-rgx=[a-z_][a-z0-9_]{2,30}$
144
145 # Naming hint for argument names
146 argument-name-hint=[a-z_][a-z0-9_]{2,30}$
147
148 # Regular expression matching correct class attribute names
149 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,40}|(__.*__))$
150
151 # Naming hint for class attribute names
152 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,40}|(__.*__))$
153
154 # Regular expression matching correct inline iteration names
155 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
156
157 # Naming hint for inline iteration names
158 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
159
160 # Regular expression matching correct class names
161 class-rgx=[A-Z_][a-zA-Z0-9]+$
162
163 # Naming hint for class names
164 class-name-hint=[A-Z_][a-zA-Z0-9]+$
165
166 # Regular expression matching correct module names
167 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
168
169 # Naming hint for module names
170 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
171
172 # Regular expression matching correct method names
173 method-rgx=[a-z_][a-z0-9_]{2,30}$
174
175 # Naming hint for method names
176 method-name-hint=[a-z_][a-z0-9_]{2,30}$
177
178 # Regular expression which should only match function or class names that do
179 # not require a docstring.
180 no-docstring-rgx=__.*__
181
182 # Minimum line length for functions/classes that require docstrings, shorter
183 # ones are exempt.
184 docstring-min-length=-1
185
186
187 [ELIF]
188
189 # Maximum number of nested blocks for function / method body
190 max-nested-blocks=5
191
192
193 [FORMAT]
194
195 # Maximum number of characters on a single line.
196 max-line-length=85
197
198 # Regexp for a line that is allowed to be longer than the limit.
199 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
200
201 # Allow the body of an if to be on the same line as the test if there is no
202 # else.
203 single-line-if-stmt=no
204
205 # List of optional constructs for which whitespace checking is disabled. `dict-
206 # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
207 # `trailing-comma` allows a space between comma and closing bracket: (a, ).
208 # `empty-line` allows space-only lines.
209 no-space-check=trailing-comma,dict-separator
210
211 # Maximum number of lines in a module
212 max-module-lines=1000
213
214 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
215 # tab).
216 indent-string=' '
217
218 # Number of spaces of indent required inside a hanging or continued line.
219 indent-after-paren=4
220
221 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
222 expected-line-ending-format=
223
224
225 [LOGGING]
226
227 # Logging modules to check that the string format arguments are in logging
228 # function parameter format
229 logging-modules=logging
230
231
232 [MISCELLANEOUS]
233
234 # List of note tags to take in consideration, separated by a comma.
235 notes=FIXME,XXX,TODO
236
237
238 [SIMILARITIES]
239
240 # Minimum lines number of a similarity.
241 min-similarity-lines=4
242
243 # Ignore comments when computing similarities.
244 ignore-comments=yes
245
246 # Ignore docstrings when computing similarities.
247 ignore-docstrings=yes
248
249 # Ignore imports when computing similarities.
250 ignore-imports=no
251
252
253 [SPELLING]
254
255 # Spelling dictionary name. Available dictionaries: none. To make it working
256 # install python-enchant package.
257 spelling-dict=
258
259 # List of comma separated words that should not be checked.
260 spelling-ignore-words=
261
262 # A path to a file that contains private dictionary; one word per line.
263 spelling-private-dict-file=
264
265 # Tells whether to store unknown words to indicated private dictionary in
266 # --spelling-private-dict-file option instead of raising a message.
267 spelling-store-unknown-words=no
268
269
270 [TYPECHECK]
271
272 # Tells whether missing members accessed in mixin class should be ignored. A
273 # mixin class is detected if its name ends with "mixin" (case insensitive).
274 ignore-mixin-members=yes
275
276 # List of module names for which member attributes should not be checked
277 # (useful for modules/projects where namespaces are manipulated during runtime
278 # and thus existing member attributes cannot be deduced by static analysis. It
279 # supports qualified module names, as well as Unix pattern matching.
280 ignored-modules=
281
282 # List of classes names for which member attributes should not be checked
283 # (useful for classes with attributes dynamically set). This supports can work
284 # with qualified names.
285 ignored-classes=SQLObject
286
287 # List of members which are set dynamically and missed by pylint inference
288 # system, and so shouldn't trigger E1101 when accessed. Python regular
289 # expressions are accepted.
290 generated-members=REQUEST,acl_users,aq_parent
291
292
293 [VARIABLES]
294
295 # Tells whether we should check for unused import in __init__ files.
296 init-import=no
297
298 # A regular expression matching the name of dummy variables (i.e. expectedly
299 # not used).
300 dummy-variables-rgx=_|dummy|kwargs
301
302 # List of additional names supposed to be defined in builtins. Remember that
303 # you should avoid to define new builtins when possible.
304 additional-builtins=
305
306 # List of strings which can identify a callback function by name. A callback
307 # name must start or end with one of those strings.
308 callbacks=cb_,_cb
309
310
311 [CLASSES]
312
313 # List of method names used to declare (i.e. assign) instance attributes.
314 defining-attr-methods=__init__,__new__,setUp
315
316 # List of valid names for the first argument in a class method.
317 valid-classmethod-first-arg=cls
318
319 # List of valid names for the first argument in a metaclass class method.
320 valid-metaclass-classmethod-first-arg=mcs
321
322 # List of member names, which should be excluded from the protected access
323 # warning.
324 exclude-protected=_asdict,_fields,_replace,_source,_make
325
326
327 [DESIGN]
328
329 # Maximum number of arguments for function / method
330 max-args=10
331
332 # Argument names that match this expression will be ignored. Default to name
333 # with leading underscore
334 ignored-argument-names=_.*
335
336 # Maximum number of locals for function / method body
337 max-locals=15
338
339 # Maximum number of return / yield for function / method body
340 max-returns=6
341
342 # Maximum number of branch for function / method body
343 max-branches=12
344
345 # Maximum number of statements in function / method body
346 max-statements=50
347
348 # Maximum number of parents for a class (see R0901).
349 max-parents=7
350
351 # Maximum number of attributes for a class (see R0902).
352 max-attributes=10
353
354 # Minimum number of public methods for a class (see R0903).
355 min-public-methods=2
356
357 # Maximum number of public methods for a class (see R0904).
358 max-public-methods=30
359
360 # Maximum number of boolean expressions in a if statement
361 max-bool-expr=5
362
363
364 [IMPORTS]
365
366 # Deprecated modules which should not be used, separated by a comma
367 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
368
369 # Create a graph of every (i.e. internal and external) dependencies in the
370 # given file (report RP0402 must not be disabled)
371 import-graph=
372
373 # Create a graph of external dependencies in the given file (report RP0402 must
374 # not be disabled)
375 ext-import-graph=
376
377 # Create a graph of internal dependencies in the given file (report RP0402 must
378 # not be disabled)
379 int-import-graph=
380
381
382 [EXCEPTIONS]
383
384 # Exceptions that will emit a warning when being caught. Defaults to
385 # "Exception"
386 overgeneral-exceptions=Exception