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