Dennis Dmitriev | e56c8b9 | 2017-06-16 01:53:16 +0300 | [diff] [blame^] | 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, tox, logs, migrations |
| 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 | # Use multiple processes to speed up Pylint. |
| 22 | jobs=1 |
| 23 | |
| 24 | # Allow loading of arbitrary C extensions. Extensions are imported into the |
| 25 | # active Python interpreter and may run arbitrary code. |
| 26 | unsafe-load-any-extension=no |
| 27 | |
| 28 | # A comma-separated list of package or module names from where C extensions may |
| 29 | # be loaded. Extensions are loading into the active Python interpreter and may |
| 30 | # run arbitrary code |
| 31 | extension-pkg-whitelist= |
| 32 | |
| 33 | # Allow optimization of some AST trees. This will activate a peephole AST |
| 34 | # optimizer, which will apply various small optimizations. For instance, it can |
| 35 | # be used to obtain the result of joining multiple strings with the addition |
| 36 | # operator. Joining a lot of strings can lead to a maximum recursion error in |
| 37 | # Pylint and this flag can prevent that. It has one side effect, the resulting |
| 38 | # AST will be different than the one from reality. |
| 39 | optimize-ast=no |
| 40 | |
| 41 | |
| 42 | [MESSAGES CONTROL] |
| 43 | |
| 44 | # Only show warnings with the listed confidence levels. Leave empty to show |
| 45 | # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED |
| 46 | confidence= |
| 47 | |
| 48 | # Enable the message, report, category or checker with the given id(s). You can |
| 49 | # either give multiple identifier separated by comma (,) or put this option |
| 50 | # multiple time. See also the "--disable" option for examples. |
| 51 | |
| 52 | # old-style-class (C1001) |
| 53 | # return-arg-in-generator (E0106) |
| 54 | # slots-on-old-class (E1001) |
| 55 | # super-on-old-class (E1002) |
| 56 | # missing-super-argument (E1004) |
| 57 | # print-statement (E1601) |
| 58 | # parameter-unpacking (E1602) |
| 59 | # unpacking-in-except (E1603) |
| 60 | # old-raise-syntax (E1604) |
| 61 | # backtick (E1605) |
| 62 | # long-suffix (E1606) |
| 63 | # old-ne-operator (E1607) |
| 64 | # old-octal-literal (E1608) |
| 65 | # import-star-module-level (E1609) |
| 66 | # lowercase-l-suffix (W0332) |
| 67 | # deprecated-module (W0402) |
| 68 | # invalid-encoded-data (W0512) |
| 69 | # property-on-old-class (W1001) |
| 70 | # boolean-datetime (W1502) |
| 71 | # deprecated-method (W1505) |
| 72 | # apply-builtin (W1601) |
| 73 | # basestring-builtin (W1602) |
| 74 | # buffer-builtin (W1603) |
| 75 | # cmp-builtin (W1604) |
| 76 | # coerce-builtin (W1605) |
| 77 | # execfile-builtin (W1606) |
| 78 | # file-builtin (W1607) |
| 79 | # long-builtin (W1608) |
| 80 | # raw_input-builtin (W1609) |
| 81 | # reduce-builtin (W1610) |
| 82 | # standarderror-builtin (W1611) |
| 83 | # unicode-builtin (W1612) |
| 84 | # xrange-builtin (W1613) |
| 85 | # coerce-method (W1614) |
| 86 | # delslice-method (W1615) |
| 87 | # getslice-method (W1616) |
| 88 | # setslice-method (W1617) |
| 89 | # old-division (W1619) |
| 90 | # dict-iter-method (W1620) |
| 91 | # dict-view-method (W1621) |
| 92 | # next-method-called (W1622) |
| 93 | # metaclass-assignment (W1623) |
| 94 | # indexing-exception (W1624) |
| 95 | # raising-string (W1625) |
| 96 | # reload-builtin (W1626) |
| 97 | # oct-method (W1627) |
| 98 | # hex-method (W1628) |
| 99 | # nonzero-method (W1629) |
| 100 | # cmp-method (W1630) |
| 101 | # input-builtin (W1632) |
| 102 | # round-builtin (W1633) |
| 103 | # intern-builtin (W1634) |
| 104 | # unichr-builtin (W1635) |
| 105 | # map-builtin-not-iterating (W1636) |
| 106 | # zip-builtin-not-iterating (W1637) |
| 107 | # range-builtin-not-iterating (W1638) |
| 108 | # filter-builtin-not-iterating (W1639) |
| 109 | # filter-builtin-not-iterating (W1639) |
| 110 | # using-cmp-argument (W1640) |
| 111 | |
| 112 | enable = E0106,C1001,E1001,E1002,E1004,E1601,E1602,E1603,E1604,E1605,E1606,E1607,E1608,E1609,W0332,W0402,W0512,W1001,W1502,W1505,W1601,W1602,W1603,W1604,W1605,W1606,W1607,W1608,W1609,W1610,W1611,W1612,W1613,W1614,W1615,W1616,W1617,W1619,W1620,W1621,W1622,W1623,W1624,W1625,W1626,W1627,W1628,W1629,W1630,W1632,W1633,W1634,W1635,W1636,W1637,W1638,W1639,W1640, |
| 113 | |
| 114 | # Disable the message, report, category or checker with the given id(s). You |
| 115 | # can either give multiple identifiers separated by comma (,) or put this |
| 116 | # option multiple times (only on the command line, not in the configuration |
| 117 | # file where it should appear only once).You can also use "--disable=all" to |
| 118 | # disable everything first and then reenable specific checks. For example, if |
| 119 | # you want to run only the similarities checker, you can use "--disable=all |
| 120 | # --enable=similarities". If you want to run only the classes checker, but have |
| 121 | # no Warning level messages displayed, use"--disable=all --enable=classes |
| 122 | # --disable=W" |
| 123 | |
| 124 | # Disabling pointless reports: |
| 125 | # RP0401: External dependencies |
| 126 | # RP0402: Modules dependencies graph |
| 127 | # RP0801: Duplication |
| 128 | # R0801: Duplication |
| 129 | # cyclic-import (R0401) - produces false-negative results |
| 130 | |
| 131 | # Disabling messages: |
| 132 | # no-member (E1101) - false negative on django |
| 133 | |
| 134 | # pointless-string-statement (W0105) |
| 135 | # unnecessary-lambda (W0108) |
| 136 | # deprecated-lambda (W0110) |
| 137 | # bad-builtin (W0141) |
| 138 | # protected-access (W0212) |
| 139 | # fixme (W0511) |
| 140 | # unused-argument (W0613) |
| 141 | # redefined-outer-name (W0621) |
| 142 | # cell-var-from-loop (W0640) |
| 143 | # bare-except (W0702) |
| 144 | # broad-except (W0703) |
| 145 | # logging-format-interpolation (W1202) |
| 146 | # anomalous-backslash-in-string (W1401) - DO NOT ENABLE, INCORRECTLY PARSES REGEX |
| 147 | # no-absolute-import (W1618): |
| 148 | # import missing `from __future__ import absolute_import` Used when an import is not accompanied by from __future__ import absolute_import (default behaviour in Python 3) |
| 149 | |
| 150 | # invalid-name (C0103) |
| 151 | # missing-docstring (C0111) |
| 152 | # misplaced-comparison-constant (C0122) |
| 153 | # too-many-lines (C0302) |
| 154 | # bad-continuation (C0330) |
| 155 | |
| 156 | # too-many-ancestors (R0901) |
| 157 | # too-many-instance-attributes (R0902) |
| 158 | # too-many-public-methods (R0904) |
| 159 | # too-few-public-methods (R0903) |
| 160 | # too-many-return-statements (R0911) |
| 161 | # too-many-branches (R0912) |
| 162 | # too-many-arguments (R0913) |
| 163 | # too-many-locals (R0914) |
| 164 | # too-many-statements (R0915) |
| 165 | |
| 166 | # locally-disabled (I0011) |
| 167 | # locally-enabled (I0012) |
| 168 | |
| 169 | disable=E1101,I0011,I0012,R0902,RP0401,RP0402,RP0801,R0801, W0141,W1618,W0621,W1202,W1401,W0703,W0702,C0111,W0640,C0122,W0511, W0613, C0103, R0903, C0330, W0212, C0302, R0915, R0914, R0912, W0105, R0904, R0911, W0108, W0110, R0913, R0901, R0401 |
| 170 | |
| 171 | [REPORTS] |
| 172 | |
| 173 | # Set the output format. Available formats are text, parseable, colorized, msvs |
| 174 | # (visual studio) and html. You can also give a reporter class, eg |
| 175 | # mypackage.mymodule.MyReporterClass. |
| 176 | output-format=text |
| 177 | #output-format=parseable |
| 178 | |
| 179 | # Put messages in a separate file for each module / package specified on the |
| 180 | # command line instead of printing them on stdout. Reports (if any) will be |
| 181 | # written in a file name "pylint_global.[txt|html]". |
| 182 | files-output=no |
| 183 | |
| 184 | # Tells whether to display a full report or only the messages |
| 185 | reports=yes |
| 186 | |
| 187 | # Python expression which should return a note less than 10 (10 is the highest |
| 188 | # note). You have access to the variables errors warning, statement which |
| 189 | # respectively contain the number of errors / warnings messages and the total |
| 190 | # number of statements analyzed. This is used by the global evaluation report |
| 191 | # (RP0004). |
| 192 | evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
| 193 | |
| 194 | # Template used to display messages. This is a python new-style format string |
| 195 | # used to format the message information. See doc for all details |
| 196 | #msg-template= |
| 197 | |
| 198 | |
| 199 | [VARIABLES] |
| 200 | |
| 201 | # Tells whether we should check for unused import in __init__ files. |
| 202 | init-import=no |
| 203 | |
| 204 | # A regular expression matching the name of dummy variables (i.e. expectedly |
| 205 | # not used). |
| 206 | dummy-variables-rgx=_$|dummy |
| 207 | |
| 208 | # List of additional names supposed to be defined in builtins. Remember that |
| 209 | # you should avoid to define new builtins when possible. |
| 210 | additional-builtins= |
| 211 | |
| 212 | # List of strings which can identify a callback function by name. A callback |
| 213 | # name must start or end with one of those strings. |
| 214 | callbacks=cb_,_cb |
| 215 | |
| 216 | |
| 217 | [TYPECHECK] |
| 218 | |
| 219 | # Tells whether missing members accessed in mixin class should be ignored. A |
| 220 | # mixin class is detected if its name ends with "mixin" (case insensitive). |
| 221 | ignore-mixin-members=yes |
| 222 | |
| 223 | # List of module names for which member attributes should not be checked |
| 224 | # (useful for modules/projects where namespaces are manipulated during runtime |
| 225 | # and thus existing member attributes cannot be deduced by static analysis. It |
| 226 | # supports qualified module names, as well as Unix pattern matching. |
| 227 | ignored-modules= |
| 228 | |
| 229 | # List of classes names for which member attributes should not be checked |
| 230 | # (useful for classes with attributes dynamically set). This supports can work |
| 231 | # with qualified names. |
| 232 | ignored-classes= |
| 233 | |
| 234 | # List of members which are set dynamically and missed by pylint inference |
| 235 | # system, and so shouldn't trigger E1101 when accessed. Python regular |
| 236 | # expressions are accepted. |
| 237 | generated-members= |
| 238 | |
| 239 | |
| 240 | [SPELLING] |
| 241 | |
| 242 | # Spelling dictionary name. Available dictionaries: none. To make it working |
| 243 | # install python-enchant package. |
| 244 | spelling-dict= |
| 245 | |
| 246 | # List of comma separated words that should not be checked. |
| 247 | spelling-ignore-words= |
| 248 | |
| 249 | # A path to a file that contains private dictionary; one word per line. |
| 250 | spelling-private-dict-file= |
| 251 | |
| 252 | # Tells whether to store unknown words to indicated private dictionary in |
| 253 | # --spelling-private-dict-file option instead of raising a message. |
| 254 | spelling-store-unknown-words=no |
| 255 | |
| 256 | |
| 257 | [SIMILARITIES] |
| 258 | |
| 259 | # Minimum lines number of a similarity. |
| 260 | min-similarity-lines=10 |
| 261 | |
| 262 | # Ignore comments when computing similarities. |
| 263 | ignore-comments=yes |
| 264 | |
| 265 | # Ignore docstrings when computing similarities. |
| 266 | ignore-docstrings=yes |
| 267 | |
| 268 | # Ignore imports when computing similarities. |
| 269 | ignore-imports=no |
| 270 | |
| 271 | |
| 272 | [MISCELLANEOUS] |
| 273 | |
| 274 | # List of note tags to take in consideration, separated by a comma. |
| 275 | notes=FIXME,XXX,TODO |
| 276 | |
| 277 | |
| 278 | [LOGGING] |
| 279 | |
| 280 | # Logging modules to check that the string format arguments are in logging |
| 281 | # function parameter format |
| 282 | logging-modules=logging |
| 283 | |
| 284 | |
| 285 | [FORMAT] |
| 286 | |
| 287 | # Maximum number of characters on a single line. |
| 288 | max-line-length=80 |
| 289 | |
| 290 | # Regexp for a line that is allowed to be longer than the limit. |
| 291 | ignore-long-lines=^\s*(# )?<?https?://\S+>?$ |
| 292 | |
| 293 | # Allow the body of an if to be on the same line as the test if there is no |
| 294 | # else. |
| 295 | single-line-if-stmt=no |
| 296 | |
| 297 | # List of optional constructs for which whitespace checking is disabled. `dict- |
| 298 | # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. |
| 299 | # `trailing-comma` allows a space between comma and closing bracket: (a, ). |
| 300 | # `empty-line` allows space-only lines. |
| 301 | no-space-check=trailing-comma,dict-separator |
| 302 | |
| 303 | # Maximum number of lines in a module |
| 304 | max-module-lines=1500 |
| 305 | |
| 306 | # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 |
| 307 | # tab). |
| 308 | indent-string=' ' |
| 309 | |
| 310 | # Number of spaces of indent required inside a hanging or continued line. |
| 311 | indent-after-paren=4 |
| 312 | |
| 313 | # Expected format of line ending, e.g. empty (any line ending), LF or CRLF. |
| 314 | expected-line-ending-format= |
| 315 | |
| 316 | |
| 317 | [BASIC] |
| 318 | |
| 319 | # List of builtins function names that should not be used, separated by a comma |
| 320 | bad-functions=map,filter,input |
| 321 | |
| 322 | # Good variable names which should always be accepted, separated by a comma |
| 323 | good-names=i,j,k,ex,Run,_,x,e,ip |
| 324 | |
| 325 | # Bad variable names which should always be refused, separated by a comma |
| 326 | bad-names=foo,bar,baz,toto,tutu,tata |
| 327 | |
| 328 | # Colon-delimited sets of names that determine each other's naming style when |
| 329 | # the name regexes allow several styles. |
| 330 | name-group= |
| 331 | |
| 332 | # Include a hint for the correct naming format with invalid-name |
| 333 | include-naming-hint=no |
| 334 | |
| 335 | # Regular expression matching correct function names |
| 336 | function-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 337 | |
| 338 | # Naming hint for function names |
| 339 | function-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 340 | |
| 341 | # Regular expression matching correct variable names |
| 342 | variable-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 343 | |
| 344 | # Naming hint for variable names |
| 345 | variable-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 346 | |
| 347 | # Regular expression matching correct constant names |
| 348 | const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 349 | |
| 350 | # Naming hint for constant names |
| 351 | const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 352 | |
| 353 | # Regular expression matching correct attribute names |
| 354 | attr-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 355 | |
| 356 | # Naming hint for attribute names |
| 357 | attr-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 358 | |
| 359 | # Regular expression matching correct argument names |
| 360 | argument-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 361 | |
| 362 | # Naming hint for argument names |
| 363 | argument-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 364 | |
| 365 | # Regular expression matching correct class attribute names |
| 366 | class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
| 367 | |
| 368 | # Naming hint for class attribute names |
| 369 | class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
| 370 | |
| 371 | # Regular expression matching correct inline iteration names |
| 372 | inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
| 373 | |
| 374 | # Naming hint for inline iteration names |
| 375 | inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ |
| 376 | |
| 377 | # Regular expression matching correct class names |
| 378 | class-rgx=[A-Z_][a-zA-Z0-9]+$ |
| 379 | |
| 380 | # Naming hint for class names |
| 381 | class-name-hint=[A-Z_][a-zA-Z0-9]+$ |
| 382 | |
| 383 | # Regular expression matching correct module names |
| 384 | module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 385 | |
| 386 | # Naming hint for module names |
| 387 | module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 388 | |
| 389 | # Regular expression matching correct method names |
| 390 | method-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 391 | |
| 392 | # Naming hint for method names |
| 393 | method-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 394 | |
| 395 | # Regular expression which should only match function or class names that do |
| 396 | # not require a docstring. |
| 397 | no-docstring-rgx=^_ |
| 398 | |
| 399 | # Minimum line length for functions/classes that require docstrings, shorter |
| 400 | # ones are exempt. |
| 401 | docstring-min-length=-1 |
| 402 | |
| 403 | |
| 404 | [ELIF] |
| 405 | |
| 406 | # Maximum number of nested blocks for function / method body |
| 407 | max-nested-blocks=5 |
| 408 | |
| 409 | |
| 410 | [IMPORTS] |
| 411 | |
| 412 | # Deprecated modules which should not be used, separated by a comma |
| 413 | deprecated-modules=regsub,TERMIOS,Bastion,rexec |
| 414 | |
| 415 | # Create a graph of every (i.e. internal and external) dependencies in the |
| 416 | # given file (report RP0402 must not be disabled) |
| 417 | import-graph= |
| 418 | |
| 419 | # Create a graph of external dependencies in the given file (report RP0402 must |
| 420 | # not be disabled) |
| 421 | ext-import-graph= |
| 422 | |
| 423 | # Create a graph of internal dependencies in the given file (report RP0402 must |
| 424 | # not be disabled) |
| 425 | int-import-graph= |
| 426 | |
| 427 | |
| 428 | [DESIGN] |
| 429 | |
| 430 | # Maximum number of arguments for function / method |
| 431 | max-args=10 |
| 432 | |
| 433 | # Argument names that match this expression will be ignored. Default to name |
| 434 | # with leading underscore |
| 435 | ignored-argument-names=_.* |
| 436 | |
| 437 | # Maximum number of locals for function / method body |
| 438 | max-locals=15 |
| 439 | |
| 440 | # Maximum number of return / yield for function / method body |
| 441 | max-returns=6 |
| 442 | |
| 443 | # Maximum number of branch for function / method body |
| 444 | max-branches=12 |
| 445 | |
| 446 | # Maximum number of statements in function / method body |
| 447 | max-statements=50 |
| 448 | |
| 449 | # Maximum number of parents for a class (see R0901). |
| 450 | max-parents=7 |
| 451 | |
| 452 | # Maximum number of attributes for a class (see R0902). |
| 453 | max-attributes=15 |
| 454 | |
| 455 | # Minimum number of public methods for a class (see R0903). |
| 456 | min-public-methods=2 |
| 457 | |
| 458 | # Maximum number of public methods for a class (see R0904). |
| 459 | max-public-methods=20 |
| 460 | |
| 461 | # Maximum number of boolean expressions in a if statement |
| 462 | max-bool-expr=5 |
| 463 | |
| 464 | |
| 465 | [CLASSES] |
| 466 | |
| 467 | # List of method names used to declare (i.e. assign) instance attributes. |
| 468 | defining-attr-methods=__init__,__new__,setUp |
| 469 | |
| 470 | # List of valid names for the first argument in a class method. |
| 471 | valid-classmethod-first-arg=cls |
| 472 | |
| 473 | # List of valid names for the first argument in a metaclass class method. |
| 474 | valid-metaclass-classmethod-first-arg=mcs |
| 475 | |
| 476 | # List of member names, which should be excluded from the protected access |
| 477 | # warning. |
| 478 | exclude-protected=_asdict,_fields,_replace,_source,_make |
| 479 | |
| 480 | |
| 481 | [EXCEPTIONS] |
| 482 | |
| 483 | # Exceptions that will emit a warning when being caught. Defaults to |
| 484 | # "Exception" |
| 485 | overgeneral-exceptions=Exception |