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