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