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. 12ignore=CVS 13 14# Pickle collected data for later comparisons. 15persistent=yes 16 17# List of plugins (as comma separated values of python modules names) to load, 18# usually to register additional checkers. 19load-plugins= 20 21# Use multiple processes to speed up Pylint. 22jobs=1 23 24# Allow loading of arbitrary C extensions. Extensions are imported into the 25# active Python interpreter and may run arbitrary code. 26unsafe-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 31extension-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. 39optimize-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 46confidence= 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 (only on the command line, not in the configuration file where 51# it should appear only once). See also the "--disable" option for examples. 52#enable= 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" 63disable= 64 # disabled by me, 65 locally-disabled, 66 missing-docstring, 67 fixme, 68 # disabled by default, 69 import-star-module-level, 70 old-octal-literal, 71 oct-method, 72 print-statement, 73 unpacking-in-except, 74 parameter-unpacking, 75 backtick, 76 old-raise-syntax, 77 old-ne-operator, 78 long-suffix, 79 dict-view-method, 80 dict-iter-method, 81 metaclass-assignment, 82 next-method-called, 83 raising-string, 84 indexing-exception, 85 raw_input-builtin, 86 long-builtin, 87 file-builtin, 88 execfile-builtin, 89 coerce-builtin, 90 cmp-builtin, 91 buffer-builtin, 92 basestring-builtin, 93 apply-builtin, 94 filter-builtin-not-iterating, 95 using-cmp-argument, 96 useless-suppression, 97 range-builtin-not-iterating, 98 suppressed-message, 99 no-absolute-import, 100 old-division, 101 cmp-method, 102 reload-builtin, 103 zip-builtin-not-iterating, 104 intern-builtin, 105 unichr-builtin, 106 reduce-builtin, 107 standarderror-builtin, 108 unicode-builtin, 109 xrange-builtin, 110 coerce-method, 111 delslice-method, 112 getslice-method, 113 setslice-method, 114 input-builtin, 115 round-builtin, 116 hex-method, 117 nonzero-method, 118 map-builtin-not-iterating, 119 120 121[REPORTS] 122 123# Set the output format. Available formats are text, parseable, colorized, msvs 124# (visual studio) and html. You can also give a reporter class, eg 125# mypackage.mymodule.MyReporterClass. 126output-format=text 127 128# Put messages in a separate file for each module / package specified on the 129# command line instead of printing them on stdout. Reports (if any) will be 130# written in a file name "pylint_global.[txt|html]". 131files-output=no 132 133# Tells whether to display a full report or only the messages 134reports=yes 135 136# Python expression which should return a note less than 10 (10 is the highest 137# note). You have access to the variables errors warning, statement which 138# respectively contain the number of errors / warnings messages and the total 139# number of statements analyzed. This is used by the global evaluation report 140# (RP0004). 141evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) 142 143# Template used to display messages. This is a python new-style format string 144# used to format the message information. See doc for all details 145#msg-template= 146 147 148[FORMAT] 149 150# Maximum number of characters on a single line. 151max-line-length=100 152 153# Regexp for a line that is allowed to be longer than the limit. 154ignore-long-lines=^\s*(# )?<?https?://\S+>?$ 155 156# Allow the body of an if to be on the same line as the test if there is no 157# else. 158single-line-if-stmt=no 159 160# List of optional constructs for which whitespace checking is disabled. `dict- 161# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. 162# `trailing-comma` allows a space between comma and closing bracket: (a, ). 163# `empty-line` allows space-only lines. 164no-space-check=trailing-comma,dict-separator 165 166# Maximum number of lines in a module 167max-module-lines=1000 168 169# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 170# tab). 171indent-string=' ' 172 173# Number of spaces of indent required inside a hanging or continued line. 174indent-after-paren=4 175 176# Expected format of line ending, e.g. empty (any line ending), LF or CRLF. 177expected-line-ending-format= 178 179 180[SPELLING] 181 182# Spelling dictionary name. Available dictionaries: none. To make it working 183# install python-enchant package. 184spelling-dict= 185 186# List of comma separated words that should not be checked. 187spelling-ignore-words= 188 189# A path to a file that contains private dictionary; one word per line. 190spelling-private-dict-file= 191 192# Tells whether to store unknown words to indicated private dictionary in 193# --spelling-private-dict-file option instead of raising a message. 194spelling-store-unknown-words=no 195 196 197[LOGGING] 198 199# Logging modules to check that the string format arguments are in logging 200# function parameter format 201logging-modules=logging 202 203 204[BASIC] 205 206# List of builtins function names that should not be used, separated by a comma 207bad-functions=map,filter,input 208 209# Good variable names which should always be accepted, separated by a comma 210good-names=i,e,s,_,fd,fp 211 212# Bad variable names which should always be refused, separated by a comma 213bad-names=foo,bar,baz,toto,tutu,tata 214 215# Colon-delimited sets of names that determine each other's naming style when 216# the name regexes allow several styles. 217name-group= 218 219# Include a hint for the correct naming format with invalid-name 220include-naming-hint=no 221 222# Regular expression matching correct function names 223# original: 224#function-rgx=[a-z_][a-z0-9_]{2,30}$ 225function-rgx=[a-zA-Z_][a-zA-Z0-9_]{2,40}$ 226 227# Naming hint for function names 228function-name-hint=[a-z_][a-z0-9_]{2,30}$ 229 230# Regular expression matching correct variable names 231variable-rgx=[a-z_][a-z0-9_]{2,30}$ 232 233# Naming hint for variable names 234variable-name-hint=[a-z_][a-z0-9_]{2,30}$ 235 236# Regular expression matching correct constant names 237# original: 238#const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ 239const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$ 240 241# Naming hint for constant names 242const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ 243 244# Regular expression matching correct attribute names 245attr-rgx=[a-z_][a-z0-9_]{2,30}$ 246 247# Naming hint for attribute names 248attr-name-hint=[a-z_][a-z0-9_]{2,30}$ 249 250# Regular expression matching correct argument names 251argument-rgx=[a-z_][a-z0-9_]{2,30}$ 252 253# Naming hint for argument names 254argument-name-hint=[a-z_][a-z0-9_]{2,30}$ 255 256# Regular expression matching correct class attribute names 257# original: 258#class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ 259class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,40}|(__.*__))$ 260 261# Naming hint for class attribute names 262class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ 263 264# Regular expression matching correct inline iteration names 265inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ 266 267# Naming hint for inline iteration names 268inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ 269 270# Regular expression matching correct class names 271# original: 272#class-rgx=[A-Z_][a-zA-Z0-9]+$ 273class-rgx=[a-zA-Z_][a-zA-Z0-9]+$ 274 275# Naming hint for class names 276class-name-hint=[A-Z_][a-zA-Z0-9]+$ 277 278# Regular expression matching correct module names 279module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ 280 281# Naming hint for module names 282module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ 283 284# Regular expression matching correct method names 285# original: 286#method-rgx=[a-z_][a-z0-9_]{2,30}$ 287method-rgx=[a-zA-Z_][a-zA-Z0-9_]{2,40}$ 288 289# Naming hint for method names 290method-name-hint=[a-z_][a-z0-9_]{2,30}$ 291 292# Regular expression which should only match function or class names that do 293# not require a docstring. 294no-docstring-rgx=^_ 295 296# Minimum line length for functions/classes that require docstrings, shorter 297# ones are exempt. 298docstring-min-length=-1 299 300 301[ELIF] 302 303# Maximum number of nested blocks for function / method body 304max-nested-blocks=5 305 306 307[SIMILARITIES] 308 309# Minimum lines number of a similarity. 310min-similarity-lines=4 311 312# Ignore comments when computing similarities. 313ignore-comments=yes 314 315# Ignore docstrings when computing similarities. 316ignore-docstrings=yes 317 318# Ignore imports when computing similarities. 319ignore-imports=no 320 321 322[TYPECHECK] 323 324# Tells whether missing members accessed in mixin class should be ignored. A 325# mixin class is detected if its name ends with "mixin" (case insensitive). 326ignore-mixin-members=yes 327 328# List of module names for which member attributes should not be checked 329# (useful for modules/projects where namespaces are manipulated during runtime 330# and thus existing member attributes cannot be deduced by static analysis. It 331# supports qualified module names, as well as Unix pattern matching. 332ignored-modules= 333 334# List of classes names for which member attributes should not be checked 335# (useful for classes with attributes dynamically set). This supports can work 336# with qualified names. 337ignored-classes= 338 339# List of members which are set dynamically and missed by pylint inference 340# system, and so shouldn't trigger E1101 when accessed. Python regular 341# expressions are accepted. 342generated-members= 343 344 345[MISCELLANEOUS] 346 347# List of note tags to take in consideration, separated by a comma. 348notes=FIXME,XXX,TODO 349 350 351[VARIABLES] 352 353# Tells whether we should check for unused import in __init__ files. 354init-import=no 355 356# A regular expression matching the name of dummy variables (i.e. expectedly 357# not used). 358dummy-variables-rgx=_$|dummy 359 360# List of additional names supposed to be defined in builtins. Remember that 361# you should avoid to define new builtins when possible. 362additional-builtins= 363 364# List of strings which can identify a callback function by name. A callback 365# name must start or end with one of those strings. 366callbacks=cb_,_cb 367 368 369[CLASSES] 370 371# List of method names used to declare (i.e. assign) instance attributes. 372defining-attr-methods=__init__,__new__,setUp 373 374# List of valid names for the first argument in a class method. 375valid-classmethod-first-arg=cls 376 377# List of valid names for the first argument in a metaclass class method. 378valid-metaclass-classmethod-first-arg=mcs 379 380# List of member names, which should be excluded from the protected access 381# warning. 382exclude-protected=_asdict,_fields,_replace,_source,_make 383 384 385[DESIGN] 386 387# Maximum number of arguments for function / method 388max-args=5 389 390# Argument names that match this expression will be ignored. Default to name 391# with leading underscore 392ignored-argument-names=_.* 393 394# Maximum number of locals for function / method body 395max-locals=15 396 397# Maximum number of return / yield for function / method body 398max-returns=6 399 400# Maximum number of branch for function / method body 401max-branches=12 402 403# Maximum number of statements in function / method body 404max-statements=50 405 406# Maximum number of parents for a class (see R0901). 407max-parents=7 408 409# Maximum number of attributes for a class (see R0902). 410max-attributes=7 411 412# Minimum number of public methods for a class (see R0903). 413min-public-methods=2 414 415# Maximum number of public methods for a class (see R0904). 416max-public-methods=20 417 418# Maximum number of boolean expressions in a if statement 419max-bool-expr=5 420 421 422[IMPORTS] 423 424# Deprecated modules which should not be used, separated by a comma 425deprecated-modules=regsub,TERMIOS,Bastion,rexec 426 427# Create a graph of every (i.e. internal and external) dependencies in the 428# given file (report RP0402 must not be disabled) 429import-graph= 430 431# Create a graph of external dependencies in the given file (report RP0402 must 432# not be disabled) 433ext-import-graph= 434 435# Create a graph of internal dependencies in the given file (report RP0402 must 436# not be disabled) 437int-import-graph= 438 439 440[EXCEPTIONS] 441 442# Exceptions that will emit a warning when being caught. Defaults to 443# "Exception" 444overgeneral-exceptions=Exception 445