/ .pylintrc
.pylintrc
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 # Profiled execution. 11 profile=no 12 13 # Add files or directories to the blacklist. They should be base names, not 14 # paths. 15 ignore=CVS 16 17 # Pickle collected data for later comparisons. 18 persistent=yes 19 20 # List of plugins (as comma separated values of python modules names) to load, 21 # usually to register additional checkers. 22 load-plugins=linter_plugin 23 24 25 [MESSAGES CONTROL] 26 27 # Enable the message, report, category or checker with the given id(s). You can 28 # either give multiple identifier separated by comma (,) or put this option 29 # multiple time. See also the "--disable" option for examples. 30 #enable= 31 32 # Disable the message, report, category or checker with the given id(s). You 33 # can either give multiple identifiers separated by comma (,) or put this 34 # option multiple times (only on the command line, not in the configuration 35 # file where it should appear only once).You can also use "--disable=all" to 36 # disable everything first and then reenable specific checks. For example, if 37 # you want to run only the similarities checker, you can use "--disable=all 38 # --enable=similarities". If you want to run only the classes checker, but have 39 # no Warning level messages displayed, use"--disable=all --enable=classes 40 # --disable=W" 41 disable=fixme,locally-disabled,abstract-class-not-used,bad-continuation,too-few-public-methods,no-self-use,invalid-name 42 # abstract-class-not-used cannot be disabled locally (at least in pylint 1.4.1) 43 44 45 [REPORTS] 46 47 # Set the output format. Available formats are text, parseable, colorized, msvs 48 # (visual studio) and html. You can also give a reporter class, eg 49 # mypackage.mymodule.MyReporterClass. 50 output-format=text 51 52 # Put messages in a separate file for each module / package specified on the 53 # command line instead of printing them on stdout. Reports (if any) will be 54 # written in a file name "pylint_global.[txt|html]". 55 files-output=no 56 57 # Tells whether to display a full report or only the messages 58 reports=yes 59 60 # Python expression which should return a note less than 10 (10 is the highest 61 # note). You have access to the variables errors warning, statement which 62 # respectively contain the number of errors / warnings messages and the total 63 # number of statements analyzed. This is used by the global evaluation report 64 # (RP0004). 65 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) 66 67 # Add a comment according to your evaluation note. This is used by the global 68 # evaluation report (RP0004). 69 comment=no 70 71 # Template used to display messages. This is a python new-style format string 72 # used to format the message information. See doc for all details 73 #msg-template= 74 75 76 [BASIC] 77 78 # Required attributes for module, separated by a comma 79 required-attributes= 80 81 # List of builtins function names that should not be used, separated by a comma 82 bad-functions=map,filter,apply,input,file 83 84 # Good variable names which should always be accepted, separated by a comma 85 good-names=f,i,j,k,ex,Run,_,fd,logger 86 87 # Bad variable names which should always be refused, separated by a comma 88 bad-names=foo,bar,baz,toto,tutu,tata 89 90 # Colon-delimited sets of names that determine each other's naming style when 91 # the name regexes allow several styles. 92 name-group= 93 94 # Include a hint for the correct naming format with invalid-name 95 include-naming-hint=no 96 97 # Regular expression matching correct function names 98 function-rgx=[a-z_][a-z0-9_]{2,40}$ 99 100 # Naming hint for function names 101 function-name-hint=[a-z_][a-z0-9_]{2,40}$ 102 103 # Regular expression matching correct variable names 104 variable-rgx=[a-z_][a-z0-9_]{1,30}$ 105 106 # Naming hint for variable names 107 variable-name-hint=[a-z_][a-z0-9_]{2,30}$ 108 109 # Regular expression matching correct constant names 110 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ 111 112 # Naming hint for constant names 113 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ 114 115 # Regular expression matching correct attribute names 116 attr-rgx=[a-z_][a-z0-9_]{2,30}$ 117 118 # Naming hint for attribute names 119 attr-name-hint=[a-z_][a-z0-9_]{2,30}$ 120 121 # Regular expression matching correct argument names 122 argument-rgx=[a-z_][a-z0-9_]{2,30}$ 123 124 # Naming hint for argument names 125 argument-name-hint=[a-z_][a-z0-9_]{2,30}$ 126 127 # Regular expression matching correct class attribute names 128 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ 129 130 # Naming hint for class attribute names 131 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ 132 133 # Regular expression matching correct inline iteration names 134 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ 135 136 # Naming hint for inline iteration names 137 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ 138 139 # Regular expression matching correct class names 140 class-rgx=[A-Z_][a-zA-Z0-9]+$ 141 142 # Naming hint for class names 143 class-name-hint=[A-Z_][a-zA-Z0-9]+$ 144 145 # Regular expression matching correct module names 146 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ 147 148 # Naming hint for module names 149 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ 150 151 # Regular expression matching correct method names 152 method-rgx=[a-z_][a-z0-9_]{2,50}$ 153 154 # Naming hint for method names 155 method-name-hint=[a-z_][a-z0-9_]{2,50}$ 156 157 # Regular expression which should only match function or class names that do 158 # not require a docstring. 159 no-docstring-rgx=(__.*__)|(test_[A-Za-z0-9_]*)|(_.*)|(.*Test$) 160 161 # Minimum line length for functions/classes that require docstrings, shorter 162 # ones are exempt. 163 docstring-min-length=-1 164 165 166 [MISCELLANEOUS] 167 168 # List of note tags to take in consideration, separated by a comma. 169 notes=FIXME,XXX,TODO 170 171 172 [LOGGING] 173 174 # Logging modules to check that the string format arguments are in logging 175 # function parameter format 176 logging-modules=logging,logger 177 178 179 [VARIABLES] 180 181 # Tells whether we should check for unused import in __init__ files. 182 init-import=no 183 184 # A regular expression matching the name of dummy variables (i.e. expectedly 185 # not used). 186 dummy-variables-rgx=(unused)?_.*|dummy 187 188 # List of additional names supposed to be defined in builtins. Remember that 189 # you should avoid to define new builtins when possible. 190 additional-builtins= 191 192 193 [SIMILARITIES] 194 195 # Minimum lines number of a similarity. 196 min-similarity-lines=6 197 198 # Ignore comments when computing similarities. 199 ignore-comments=yes 200 201 # Ignore docstrings when computing similarities. 202 ignore-docstrings=yes 203 204 # Ignore imports when computing similarities. 205 ignore-imports=yes 206 207 208 [FORMAT] 209 210 # Maximum number of characters on a single line. 211 max-line-length=100 212 213 # Regexp for a line that is allowed to be longer than the limit. 214 ignore-long-lines=^\s*(# )?<?https?://\S+>?$ 215 216 # Allow the body of an if to be on the same line as the test if there is no 217 # else. 218 single-line-if-stmt=no 219 220 # List of optional constructs for which whitespace checking is disabled 221 no-space-check=trailing-comma 222 223 # Maximum number of lines in a module 224 max-module-lines=1250 225 226 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 227 # tab). 228 indent-string=' ' 229 230 # Number of spaces of indent required inside a hanging or continued line. 231 # This does something silly/broken... 232 #indent-after-paren=4 233 234 235 [TYPECHECK] 236 237 # Tells whether missing members accessed in mixin class should be ignored. A 238 # mixin class is detected if its name ends with "mixin" (case insensitive). 239 ignore-mixin-members=yes 240 241 # List of module names for which member attributes should not be checked 242 # (useful for modules/projects where namespaces are manipulated during runtime 243 # and thus existing member attributes cannot be deduced by static analysis 244 ignored-modules=pkg_resources,confargparse,argparse,six.moves,six.moves.urllib 245 # import errors ignored only in 1.4.4 246 # https://bitbucket.org/logilab/pylint/commits/cd000904c9e2 247 248 # List of classes names for which member attributes should not be checked 249 # (useful for classes with attributes dynamically set). 250 ignored-classes=SQLObject 251 252 # When zope mode is activated, add a predefined set of Zope acquired attributes 253 # to generated-members. 254 zope=yes 255 256 # List of members which are set dynamically and missed by pylint inference 257 # system, and so shouldn't trigger E0201 when accessed. Python regular 258 # expressions are accepted. 259 generated-members=REQUEST,acl_users,aq_parent 260 261 262 [IMPORTS] 263 264 # Deprecated modules which should not be used, separated by a comma 265 deprecated-modules=regsub,TERMIOS,Bastion,rexec 266 267 # Create a graph of every (i.e. internal and external) dependencies in the 268 # given file (report RP0402 must not be disabled) 269 import-graph= 270 271 # Create a graph of external dependencies in the given file (report RP0402 must 272 # not be disabled) 273 ext-import-graph= 274 275 # Create a graph of internal dependencies in the given file (report RP0402 must 276 # not be disabled) 277 int-import-graph= 278 279 280 [CLASSES] 281 282 # List of interface methods to ignore, separated by a comma. This is used for 283 # instance to not check methods defined in Zope's Interface base class. 284 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by,implementedBy,providedBy 285 286 # List of method names used to declare (i.e. assign) instance attributes. 287 defining-attr-methods=__init__,__new__,setUp 288 289 # List of valid names for the first argument in a class method. 290 valid-classmethod-first-arg=cls 291 292 # List of valid names for the first argument in a metaclass class method. 293 valid-metaclass-classmethod-first-arg=mcs 294 295 296 [DESIGN] 297 298 # Maximum number of arguments for function / method 299 max-args=6 300 301 # Argument names that match this expression will be ignored. Default to name 302 # with leading underscore 303 ignored-argument-names=_.* 304 305 # Maximum number of locals for function / method body 306 max-locals=15 307 308 # Maximum number of return / yield for function / method body 309 max-returns=6 310 311 # Maximum number of branch for function / method body 312 max-branches=12 313 314 # Maximum number of statements in function / method body 315 max-statements=50 316 317 # Maximum number of parents for a class (see R0901). 318 max-parents=12 319 320 # Maximum number of attributes for a class (see R0902). 321 max-attributes=7 322 323 # Minimum number of public methods for a class (see R0903). 324 min-public-methods=2 325 326 # Maximum number of public methods for a class (see R0904). 327 max-public-methods=20 328 329 330 [EXCEPTIONS] 331 332 # Exceptions that will emit a warning when being caught. Defaults to 333 # "Exception" 334 overgeneral-exceptions=Exception