|
| 1 | +[MASTER] |
| 2 | +# Use multiple processes to speed up Pylint. |
| 3 | +jobs=1 |
| 4 | + |
| 5 | +# Allow loading of arbitrary C extensions. Extensions are imported into the |
| 6 | +# active Python interpreter and may run arbitrary code. |
| 7 | +unsafe-load-any-extension=no |
| 8 | + |
| 9 | +# Allow optimization of some AST trees. This will activate a peephole AST |
| 10 | +# optimizer, which will apply various small optimizations. For instance, it can |
| 11 | +# be used to obtain the result of joining multiple strings with the addition |
| 12 | +# operator. Joining a lot of strings can lead to a maximum recursion error in |
| 13 | +# Pylint and this flag can prevent that. It has one side effect, the resulting |
| 14 | +# AST will be different than the one from reality. |
| 15 | +optimize-ast=no |
| 16 | + |
| 17 | +[MESSAGES CONTROL] |
| 18 | + |
| 19 | +# Only show warnings with the listed confidence levels. Leave empty to show |
| 20 | +# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED |
| 21 | +confidence= |
| 22 | + |
| 23 | +# Disable the message, report, category or checker with the given id(s). You |
| 24 | +# can either give multiple identifiers separated by comma (,) or put this |
| 25 | +# option multiple times (only on the command line, not in the configuration |
| 26 | +# file where it should appear only once).You can also use "--disable=all" to |
| 27 | +# disable everything first and then reenable specific checks. For example, if |
| 28 | +# you want to run only the similarities checker, you can use "--disable=all |
| 29 | +# --enable=similarities". If you want to run only the classes checker, but have |
| 30 | +# no Warning level messages displayed, use"--disable=all --enable=classes |
| 31 | +# --disable=W" |
| 32 | +disable=all |
| 33 | + |
| 34 | +# Enable the message, report, category or checker with the given id(s). You can |
| 35 | +# either give multiple identifier separated by comma (,) or put this option |
| 36 | +# multiple time. See also the "--disable" option for examples. |
| 37 | +enable=import-error, |
| 38 | + import-self, |
| 39 | + reimported, |
| 40 | + wildcard-import, |
| 41 | + misplaced-future, |
| 42 | + relative-import, |
| 43 | + deprecated-module, |
| 44 | + unpacking-non-sequence, |
| 45 | + invalid-all-object, |
| 46 | + undefined-all-variable, |
| 47 | + used-before-assignment, |
| 48 | + cell-var-from-loop, |
| 49 | + global-variable-undefined, |
| 50 | + dangerous-default-value, |
| 51 | + # redefined-builtin, |
| 52 | + redefine-in-handler, |
| 53 | + unused-import, |
| 54 | + unused-wildcard-import, |
| 55 | + global-variable-not-assigned, |
| 56 | + undefined-loop-variable, |
| 57 | + global-statement, |
| 58 | + global-at-module-level, |
| 59 | + bad-open-mode, |
| 60 | + redundant-unittest-assert, |
| 61 | + boolean-datetime, |
| 62 | + # unused-variable |
| 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. |
| 70 | +output-format=parseable |
| 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]". |
| 75 | +files-output=no |
| 76 | + |
| 77 | +# Tells whether to display a full report or only the messages |
| 78 | +reports=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). |
| 85 | +evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
| 86 | + |
| 87 | +[BASIC] |
| 88 | + |
| 89 | +# List of builtins function names that should not be used, separated by a comma |
| 90 | +bad-functions=map,filter,input |
| 91 | + |
| 92 | +# Good variable names which should always be accepted, separated by a comma |
| 93 | +good-names=i,j,k,ex,Run,_ |
| 94 | + |
| 95 | +# Bad variable names which should always be refused, separated by a comma |
| 96 | +bad-names=foo,bar,baz,toto,tutu,tata |
| 97 | + |
| 98 | +# Colon-delimited sets of names that determine each other's naming style when |
| 99 | +# the name regexes allow several styles. |
| 100 | +name-group= |
| 101 | + |
| 102 | +# Include a hint for the correct naming format with invalid-name |
| 103 | +include-naming-hint=yes |
| 104 | + |
| 105 | +# Regular expression matching correct method names |
| 106 | +method-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 107 | + |
| 108 | +# Naming hint for method names |
| 109 | +method-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 110 | + |
| 111 | +# Regular expression matching correct function names |
| 112 | +function-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 113 | + |
| 114 | +# Naming hint for function names |
| 115 | +function-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 116 | + |
| 117 | +# Regular expression matching correct module names |
| 118 | +module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 119 | + |
| 120 | +# Naming hint for module names |
| 121 | +module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 122 | + |
| 123 | +# Regular expression matching correct attribute names |
| 124 | +attr-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 125 | + |
| 126 | +# Naming hint for attribute names |
| 127 | +attr-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 128 | + |
| 129 | +# Regular expression matching correct class attribute names |
| 130 | +class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
| 131 | + |
| 132 | +# Naming hint for class attribute names |
| 133 | +class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
| 134 | + |
| 135 | +# Regular expression matching correct constant names |
| 136 | +const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 137 | + |
| 138 | +# Naming hint for constant names |
| 139 | +const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 140 | + |
| 141 | +# Regular expression matching correct class names |
| 142 | +class-rgx=[A-Z_][a-zA-Z0-9]+$ |
| 143 | + |
| 144 | +# Naming hint for class names |
| 145 | +class-name-hint=[A-Z_][a-zA-Z0-9]+$ |
| 146 | + |
| 147 | +# Regular expression matching correct argument names |
| 148 | +argument-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 149 | + |
| 150 | +# Naming hint for argument names |
| 151 | +argument-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 152 | + |
| 153 | +# Regular expression matching correct inline iteration names |
| 154 | +inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
| 155 | + |
| 156 | +# Naming hint for inline iteration names |
| 157 | +inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ |
| 158 | + |
| 159 | +# Regular expression matching correct variable names |
| 160 | +variable-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 161 | + |
| 162 | +# Naming hint for variable names |
| 163 | +variable-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 164 | + |
| 165 | +# Regular expression which should only match function or class names that do |
| 166 | +# not require a docstring. |
| 167 | +no-docstring-rgx=^_ |
| 168 | + |
| 169 | +# Minimum line length for functions/classes that require docstrings, shorter |
| 170 | +# ones are exempt. |
| 171 | +docstring-min-length=-1 |
| 172 | + |
| 173 | + |
| 174 | +[ELIF] |
| 175 | + |
| 176 | +# Maximum number of nested blocks for function / method body |
| 177 | +max-nested-blocks=5 |
| 178 | + |
| 179 | + |
| 180 | +[FORMAT] |
| 181 | + |
| 182 | +# Maximum number of characters on a single line. |
| 183 | +max-line-length=100 |
| 184 | + |
| 185 | +# Regexp for a line that is allowed to be longer than the limit. |
| 186 | +ignore-long-lines=^\s*(# )?<?https?://\S+>?$ |
| 187 | + |
| 188 | +# Allow the body of an if to be on the same line as the test if there is no |
| 189 | +# else. |
| 190 | +single-line-if-stmt=no |
| 191 | + |
| 192 | +# List of optional constructs for which whitespace checking is disabled. `dict- |
| 193 | +# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. |
| 194 | +# `trailing-comma` allows a space between comma and closing bracket: (a, ). |
| 195 | +# `empty-line` allows space-only lines. |
| 196 | +no-space-check=trailing-comma,dict-separator |
| 197 | + |
| 198 | +# Maximum number of lines in a module |
| 199 | +max-module-lines=1000 |
| 200 | + |
| 201 | +# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 |
| 202 | +# tab). |
| 203 | +indent-string=' ' |
| 204 | + |
| 205 | +# Number of spaces of indent required inside a hanging or continued line. |
| 206 | +indent-after-paren=4 |
| 207 | + |
| 208 | +# Expected format of line ending, e.g. empty (any line ending), LF or CRLF. |
| 209 | +expected-line-ending-format= |
| 210 | + |
| 211 | + |
| 212 | +[LOGGING] |
| 213 | + |
| 214 | +# Logging modules to check that the string format arguments are in logging |
| 215 | +# function parameter format |
| 216 | +logging-modules=logging |
| 217 | + |
| 218 | + |
| 219 | +[MISCELLANEOUS] |
| 220 | + |
| 221 | +# List of note tags to take in consideration, separated by a comma. |
| 222 | +notes=FIXME,XXX,TODO |
| 223 | + |
| 224 | + |
| 225 | +[SIMILARITIES] |
| 226 | + |
| 227 | +# Minimum lines number of a similarity. |
| 228 | +min-similarity-lines=4 |
| 229 | + |
| 230 | +# Ignore comments when computing similarities. |
| 231 | +ignore-comments=yes |
| 232 | + |
| 233 | +# Ignore docstrings when computing similarities. |
| 234 | +ignore-docstrings=yes |
| 235 | + |
| 236 | +# Ignore imports when computing similarities. |
| 237 | +ignore-imports=no |
| 238 | + |
| 239 | + |
| 240 | +[SPELLING] |
| 241 | + |
| 242 | +# Spelling dictionary name. Available dictionaries: none. To make it working |
| 243 | +# install python-enchant package. |
| 244 | +spelling-dict= |
| 245 | + |
| 246 | +# List of comma separated words that should not be checked. |
| 247 | +spelling-ignore-words= |
| 248 | + |
| 249 | +# A path to a file that contains private dictionary; one word per line. |
| 250 | +spelling-private-dict-file= |
| 251 | + |
| 252 | +# Tells whether to store unknown words to indicated private dictionary in |
| 253 | +# --spelling-private-dict-file option instead of raising a message. |
| 254 | +spelling-store-unknown-words=no |
| 255 | + |
| 256 | + |
| 257 | +[TYPECHECK] |
| 258 | + |
| 259 | +# Tells whether missing members accessed in mixin class should be ignored. A |
| 260 | +# mixin class is detected if its name ends with "mixin" (case insensitive). |
| 261 | +ignore-mixin-members=yes |
| 262 | + |
| 263 | +# List of module names for which member attributes should not be checked |
| 264 | +# (useful for modules/projects where namespaces are manipulated during runtime |
| 265 | +# and thus existing member attributes cannot be deduced by static analysis. It |
| 266 | +# supports qualified module names, as well as Unix pattern matching. |
| 267 | +ignored-modules= |
| 268 | + |
| 269 | +# List of classes names for which member attributes should not be checked |
| 270 | +# (useful for classes with attributes dynamically set). This supports can work |
| 271 | +# with qualified names. |
| 272 | +ignored-classes= |
| 273 | + |
| 274 | +# List of members which are set dynamically and missed by pylint inference |
| 275 | +# system, and so shouldn't trigger E1101 when accessed. Python regular |
| 276 | +# expressions are accepted. |
| 277 | +generated-members= |
| 278 | + |
| 279 | + |
| 280 | +[VARIABLES] |
| 281 | + |
| 282 | +# Tells whether we should check for unused import in __init__ files. |
| 283 | +init-import=no |
| 284 | + |
| 285 | +# A regular expression matching the name of dummy variables (i.e. expectedly |
| 286 | +# not used). |
| 287 | +dummy-variables-rgx=_$|dummy |
| 288 | + |
| 289 | +# List of additional names supposed to be defined in builtins. Remember that |
| 290 | +# you should avoid to define new builtins when possible. |
| 291 | +additional-builtins= |
| 292 | + |
| 293 | +# List of strings which can identify a callback function by name. A callback |
| 294 | +# name must start or end with one of those strings. |
| 295 | +callbacks=cb_,_cb |
| 296 | + |
| 297 | + |
| 298 | +[CLASSES] |
| 299 | + |
| 300 | +# List of method names used to declare (i.e. assign) instance attributes. |
| 301 | +defining-attr-methods=__init__,__new__,setUp |
| 302 | + |
| 303 | +# List of valid names for the first argument in a class method. |
| 304 | +valid-classmethod-first-arg=cls |
| 305 | + |
| 306 | +# List of valid names for the first argument in a metaclass class method. |
| 307 | +valid-metaclass-classmethod-first-arg=mcs |
| 308 | + |
| 309 | +# List of member names, which should be excluded from the protected access |
| 310 | +# warning. |
| 311 | +exclude-protected=_asdict,_fields,_replace,_source,_make |
| 312 | + |
| 313 | + |
| 314 | +[DESIGN] |
| 315 | + |
| 316 | +# Maximum number of arguments for function / method |
| 317 | +max-args=5 |
| 318 | + |
| 319 | +# Argument names that match this expression will be ignored. Default to name |
| 320 | +# with leading underscore |
| 321 | +ignored-argument-names=_.* |
| 322 | + |
| 323 | +# Maximum number of locals for function / method body |
| 324 | +max-locals=15 |
| 325 | + |
| 326 | +# Maximum number of return / yield for function / method body |
| 327 | +max-returns=6 |
| 328 | + |
| 329 | +# Maximum number of branch for function / method body |
| 330 | +max-branches=12 |
| 331 | + |
| 332 | +# Maximum number of statements in function / method body |
| 333 | +max-statements=50 |
| 334 | + |
| 335 | +# Maximum number of parents for a class (see R0901). |
| 336 | +max-parents=7 |
| 337 | + |
| 338 | +# Maximum number of attributes for a class (see R0902). |
| 339 | +max-attributes=7 |
| 340 | + |
| 341 | +# Minimum number of public methods for a class (see R0903). |
| 342 | +min-public-methods=2 |
| 343 | + |
| 344 | +# Maximum number of public methods for a class (see R0904). |
| 345 | +max-public-methods=20 |
| 346 | + |
| 347 | +# Maximum number of boolean expressions in a if statement |
| 348 | +max-bool-expr=5 |
| 349 | + |
| 350 | + |
| 351 | +[IMPORTS] |
| 352 | + |
| 353 | +# Deprecated modules which should not be used, separated by a comma |
| 354 | +deprecated-modules=optparse |
| 355 | + |
| 356 | +# Create a graph of every (i.e. internal and external) dependencies in the |
| 357 | +# given file (report RP0402 must not be disabled) |
| 358 | +import-graph= |
| 359 | + |
| 360 | +# Create a graph of external dependencies in the given file (report RP0402 must |
| 361 | +# not be disabled) |
| 362 | +ext-import-graph= |
| 363 | + |
| 364 | +# Create a graph of internal dependencies in the given file (report RP0402 must |
| 365 | +# not be disabled) |
| 366 | +int-import-graph= |
| 367 | + |
| 368 | + |
| 369 | +[EXCEPTIONS] |
| 370 | + |
| 371 | +# Exceptions that will emit a warning when being caught. Defaults to |
| 372 | +# "Exception" |
| 373 | +overgeneral-exceptions=Exception |
0 commit comments