pylintrc (16475B)
1 [MASTER] 2 3 # A comma-separated list of package or module names from where C extensions may 4 # be loaded. Extensions are loading into the active Python interpreter and may 5 # run arbitrary code 6 extension-pkg-whitelist= 7 8 # Add files or directories to the blacklist. They should be base names, not 9 # paths. 10 ignore=CVS 11 12 # Add files or directories matching the regex patterns to the blacklist. The 13 # regex matches against base names, not paths. 14 ignore-patterns= 15 16 # Python code to execute, usually for sys.path manipulation such as 17 # pygtk.require(). 18 #init-hook= 19 20 # Use multiple processes to speed up Pylint. 21 jobs=1 22 23 # List of plugins (as comma separated values of python modules names) to load, 24 # usually to register additional checkers. 25 load-plugins= 26 27 # Pickle collected data for later comparisons. 28 persistent=yes 29 30 # Specify a configuration file. 31 #rcfile= 32 33 # When enabled, pylint would attempt to guess common misconfiguration and emit 34 # user-friendly hints instead of false-positive error messages 35 suggestion-mode=yes 36 37 # Allow loading of arbitrary C extensions. Extensions are imported into the 38 # active Python interpreter and may run arbitrary code. 39 unsafe-load-any-extension=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 # Disable the message, report, category or checker with the given id(s). You 49 # can either give multiple identifiers separated by comma (,) or put this 50 # option multiple times (only on the command line, not in the configuration 51 # file where it should appear only once).You can also use "--disable=all" to 52 # disable everything first and then reenable specific checks. For example, if 53 # you want to run only the similarities checker, you can use "--disable=all 54 # --enable=similarities". If you want to run only the classes checker, but have 55 # no Warning level messages displayed, use"--disable=all --enable=classes 56 # --disable=W" 57 disable=print-statement, 58 parameter-unpacking, 59 unpacking-in-except, 60 old-raise-syntax, 61 backtick, 62 long-suffix, 63 old-ne-operator, 64 old-octal-literal, 65 import-star-module-level, 66 non-ascii-bytes-literal, 67 raw-checker-failed, 68 bad-inline-option, 69 locally-disabled, 70 locally-enabled, 71 file-ignored, 72 suppressed-message, 73 useless-suppression, 74 deprecated-pragma, 75 apply-builtin, 76 basestring-builtin, 77 buffer-builtin, 78 cmp-builtin, 79 coerce-builtin, 80 execfile-builtin, 81 file-builtin, 82 long-builtin, 83 raw_input-builtin, 84 reduce-builtin, 85 standarderror-builtin, 86 unicode-builtin, 87 xrange-builtin, 88 coerce-method, 89 delslice-method, 90 getslice-method, 91 setslice-method, 92 no-absolute-import, 93 old-division, 94 dict-iter-method, 95 dict-view-method, 96 next-method-called, 97 metaclass-assignment, 98 indexing-exception, 99 raising-string, 100 reload-builtin, 101 oct-method, 102 hex-method, 103 nonzero-method, 104 cmp-method, 105 input-builtin, 106 round-builtin, 107 intern-builtin, 108 unichr-builtin, 109 map-builtin-not-iterating, 110 zip-builtin-not-iterating, 111 range-builtin-not-iterating, 112 filter-builtin-not-iterating, 113 using-cmp-argument, 114 eq-without-hash, 115 div-method, 116 idiv-method, 117 rdiv-method, 118 exception-message-attribute, 119 invalid-str-codec, 120 sys-max-int, 121 bad-python3-import, 122 deprecated-string-function, 123 deprecated-str-translate-call, 124 deprecated-itertools-function, 125 deprecated-types-field, 126 next-method-defined, 127 dict-items-not-iterating, 128 dict-keys-not-iterating, 129 dict-values-not-iterating, 130 superfluous-parens, 131 missing-docstring, 132 invalid-name 133 134 # Enable the message, report, category or checker with the given id(s). You can 135 # either give multiple identifier separated by comma (,) or put this option 136 # multiple time (only on the command line, not in the configuration file where 137 # it should appear only once). See also the "--disable" option for examples. 138 enable=c-extension-no-member 139 140 141 [REPORTS] 142 143 # Python expression which should return a note less than 10 (10 is the highest 144 # note). You have access to the variables errors warning, statement which 145 # respectively contain the number of errors / warnings messages and the total 146 # number of statements analyzed. This is used by the global evaluation report 147 # (RP0004). 148 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) 149 150 # Template used to display messages. This is a python new-style format string 151 # used to format the message information. See doc for all details 152 #msg-template= 153 154 # Set the output format. Available formats are text, parseable, colorized, json 155 # and msvs (visual studio).You can also give a reporter class, eg 156 # mypackage.mymodule.MyReporterClass. 157 output-format=text 158 159 # Tells whether to display a full report or only the messages 160 reports=no 161 162 # Activate the evaluation score. 163 score=yes 164 165 166 [REFACTORING] 167 168 # Maximum number of nested blocks for function / method body 169 max-nested-blocks=5 170 171 # Complete name of functions that never returns. When checking for 172 # inconsistent-return-statements if a never returning function is called then 173 # it will be considered as an explicit return statement and no message will be 174 # printed. 175 never-returning-functions=optparse.Values,sys.exit 176 177 178 [TYPECHECK] 179 180 # List of decorators that produce context managers, such as 181 # contextlib.contextmanager. Add to this list to register other decorators that 182 # produce valid context managers. 183 contextmanager-decorators=contextlib.contextmanager 184 185 # List of members which are set dynamically and missed by pylint inference 186 # system, and so shouldn't trigger E1101 when accessed. Python regular 187 # expressions are accepted. 188 generated-members= 189 190 # Tells whether missing members accessed in mixin class should be ignored. A 191 # mixin class is detected if its name ends with "mixin" (case insensitive). 192 ignore-mixin-members=yes 193 194 # This flag controls whether pylint should warn about no-member and similar 195 # checks whenever an opaque object is returned when inferring. The inference 196 # can return multiple potential results while evaluating a Python object, but 197 # some branches might not be evaluated, which results in partial inference. In 198 # that case, it might be useful to still emit no-member and other checks for 199 # the rest of the inferred objects. 200 ignore-on-opaque-inference=yes 201 202 # List of class names for which member attributes should not be checked (useful 203 # for classes with dynamically set attributes). This supports the use of 204 # qualified names. 205 ignored-classes=optparse.Values,thread._local,_thread._local 206 207 # List of module names for which member attributes should not be checked 208 # (useful for modules/projects where namespaces are manipulated during runtime 209 # and thus existing member attributes cannot be deduced by static analysis. It 210 # supports qualified module names, as well as Unix pattern matching. 211 ignored-modules= 212 213 # Show a hint with possible names when a member name was not found. The aspect 214 # of finding the hint is based on edit distance. 215 missing-member-hint=yes 216 217 # The minimum edit distance a name should have in order to be considered a 218 # similar match for a missing member name. 219 missing-member-hint-distance=1 220 221 # The total number of similar names that should be taken in consideration when 222 # showing a hint for a missing member. 223 missing-member-max-choices=1 224 225 226 [LOGGING] 227 228 # Logging modules to check that the string format arguments are in logging 229 # function parameter format 230 logging-modules=logging 231 232 233 [VARIABLES] 234 235 # List of additional names supposed to be defined in builtins. Remember that 236 # you should avoid to define new builtins when possible. 237 additional-builtins= 238 239 # Tells whether unused global variables should be treated as a violation. 240 allow-global-unused-variables=yes 241 242 # List of strings which can identify a callback function by name. A callback 243 # name must start or end with one of those strings. 244 callbacks=cb_, 245 _cb 246 247 # A regular expression matching the name of dummy variables (i.e. expectedly 248 # not used). 249 dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_ 250 251 # Argument names that match this expression will be ignored. Default to name 252 # with leading underscore 253 ignored-argument-names=_.*|^ignored_|^unused_ 254 255 # Tells whether we should check for unused import in __init__ files. 256 init-import=no 257 258 # List of qualified module names which can have objects that can redefine 259 # builtins. 260 redefining-builtins-modules=six.moves,past.builtins,future.builtins 261 262 263 [SPELLING] 264 265 # Limits count of emitted suggestions for spelling mistakes 266 max-spelling-suggestions=4 267 268 # Spelling dictionary name. Available dictionaries: none. To make it working 269 # install python-enchant package. 270 spelling-dict= 271 272 # List of comma separated words that should not be checked. 273 spelling-ignore-words= 274 275 # A path to a file that contains private dictionary; one word per line. 276 spelling-private-dict-file= 277 278 # Tells whether to store unknown words to indicated private dictionary in 279 # --spelling-private-dict-file option instead of raising a message. 280 spelling-store-unknown-words=no 281 282 283 [FORMAT] 284 285 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF. 286 expected-line-ending-format= 287 288 # Regexp for a line that is allowed to be longer than the limit. 289 ignore-long-lines=^\s*(# )?<?https?://\S+>?$ 290 291 # Number of spaces of indent required inside a hanging or continued line. 292 indent-after-paren=4 293 294 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 295 # tab). 296 indent-string=' ' 297 298 # Maximum number of characters on a single line. 299 max-line-length=100 300 301 # Maximum number of lines in a module 302 max-module-lines=1000 303 304 # List of optional constructs for which whitespace checking is disabled. `dict- 305 # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. 306 # `trailing-comma` allows a space between comma and closing bracket: (a, ). 307 # `empty-line` allows space-only lines. 308 no-space-check=trailing-comma, 309 dict-separator 310 311 # Allow the body of a class to be on the same line as the declaration if body 312 # contains single statement. 313 single-line-class-stmt=no 314 315 # Allow the body of an if to be on the same line as the test if there is no 316 # else. 317 single-line-if-stmt=no 318 319 320 [BASIC] 321 322 # Naming style matching correct argument names 323 argument-naming-style=snake_case 324 325 # Regular expression matching correct argument names. Overrides argument- 326 # naming-style 327 #argument-rgx= 328 329 # Naming style matching correct attribute names 330 attr-naming-style=snake_case 331 332 # Regular expression matching correct attribute names. Overrides attr-naming- 333 # style 334 #attr-rgx= 335 336 # Bad variable names which should always be refused, separated by a comma 337 bad-names=foo, 338 bar, 339 baz, 340 toto, 341 tutu, 342 tata 343 344 # Naming style matching correct class attribute names 345 class-attribute-naming-style=any 346 347 # Regular expression matching correct class attribute names. Overrides class- 348 # attribute-naming-style 349 #class-attribute-rgx= 350 351 # Naming style matching correct class names 352 class-naming-style=PascalCase 353 354 # Regular expression matching correct class names. Overrides class-naming-style 355 #class-rgx= 356 357 # Naming style matching correct constant names 358 const-naming-style=UPPER_CASE 359 360 # Regular expression matching correct constant names. Overrides const-naming- 361 # style 362 #const-rgx= 363 364 # Minimum line length for functions/classes that require docstrings, shorter 365 # ones are exempt. 366 docstring-min-length=-1 367 368 # Naming style matching correct function names 369 function-naming-style=snake_case 370 371 # Regular expression matching correct function names. Overrides function- 372 # naming-style 373 #function-rgx= 374 375 # Good variable names which should always be accepted, separated by a comma 376 good-names=i, 377 j, 378 k, 379 ex, 380 Run, 381 _ 382 383 # Include a hint for the correct naming format with invalid-name 384 include-naming-hint=no 385 386 # Naming style matching correct inline iteration names 387 inlinevar-naming-style=any 388 389 # Regular expression matching correct inline iteration names. Overrides 390 # inlinevar-naming-style 391 #inlinevar-rgx= 392 393 # Naming style matching correct method names 394 method-naming-style=snake_case 395 396 # Regular expression matching correct method names. Overrides method-naming- 397 # style 398 #method-rgx= 399 400 # Naming style matching correct module names 401 module-naming-style=snake_case 402 403 # Regular expression matching correct module names. Overrides module-naming- 404 # style 405 #module-rgx= 406 407 # Colon-delimited sets of names that determine each other's naming style when 408 # the name regexes allow several styles. 409 name-group= 410 411 # Regular expression which should only match function or class names that do 412 # not require a docstring. 413 no-docstring-rgx=^_ 414 415 # List of decorators that produce properties, such as abc.abstractproperty. Add 416 # to this list to register other decorators that produce valid properties. 417 property-classes=abc.abstractproperty 418 419 # Naming style matching correct variable names 420 variable-naming-style=snake_case 421 422 # Regular expression matching correct variable names. Overrides variable- 423 # naming-style 424 #variable-rgx= 425 426 427 [SIMILARITIES] 428 429 # Ignore comments when computing similarities. 430 ignore-comments=yes 431 432 # Ignore docstrings when computing similarities. 433 ignore-docstrings=yes 434 435 # Ignore imports when computing similarities. 436 ignore-imports=no 437 438 # Minimum lines number of a similarity. 439 min-similarity-lines=4 440 441 442 [MISCELLANEOUS] 443 444 # List of note tags to take in consideration, separated by a comma. 445 notes=FIXME, 446 XXX, 447 TODO 448 449 450 [CLASSES] 451 452 # List of method names used to declare (i.e. assign) instance attributes. 453 defining-attr-methods=__init__, 454 __new__, 455 setUp 456 457 # List of member names, which should be excluded from the protected access 458 # warning. 459 exclude-protected=_asdict, 460 _fields, 461 _replace, 462 _source, 463 _make 464 465 # List of valid names for the first argument in a class method. 466 valid-classmethod-first-arg=cls 467 468 # List of valid names for the first argument in a metaclass class method. 469 valid-metaclass-classmethod-first-arg=mcs 470 471 472 [DESIGN] 473 474 # Maximum number of arguments for function / method 475 max-args=5 476 477 # Maximum number of attributes for a class (see R0902). 478 max-attributes=7 479 480 # Maximum number of boolean expressions in a if statement 481 max-bool-expr=5 482 483 # Maximum number of branch for function / method body 484 max-branches=12 485 486 # Maximum number of locals for function / method body 487 max-locals=15 488 489 # Maximum number of parents for a class (see R0901). 490 max-parents=7 491 492 # Maximum number of public methods for a class (see R0904). 493 max-public-methods=20 494 495 # Maximum number of return / yield for function / method body 496 max-returns=6 497 498 # Maximum number of statements in function / method body 499 max-statements=50 500 501 # Minimum number of public methods for a class (see R0903). 502 min-public-methods=2 503 504 505 [IMPORTS] 506 507 # Allow wildcard imports from modules that define __all__. 508 allow-wildcard-with-all=no 509 510 # Analyse import fallback blocks. This can be used to support both Python 2 and 511 # 3 compatible code, which means that the block might have code that exists 512 # only in one or another interpreter, leading to false positives when analysed. 513 analyse-fallback-blocks=no 514 515 # Deprecated modules which should not be used, separated by a comma 516 deprecated-modules=regsub, 517 TERMIOS, 518 Bastion, 519 rexec 520 521 # Create a graph of external dependencies in the given file (report RP0402 must 522 # not be disabled) 523 ext-import-graph= 524 525 # Create a graph of every (i.e. internal and external) dependencies in the 526 # given file (report RP0402 must not be disabled) 527 import-graph= 528 529 # Create a graph of internal dependencies in the given file (report RP0402 must 530 # not be disabled) 531 int-import-graph= 532 533 # Force import order to recognize a module as part of the standard 534 # compatibility libraries. 535 known-standard-library= 536 537 # Force import order to recognize a module as part of a third party library. 538 known-third-party=enchant 539 540 541 [EXCEPTIONS] 542 543 # Exceptions that will emit a warning when being caught. Defaults to 544 # "Exception" 545 overgeneral-exceptions=Exception