| 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. |
| 12 |
ignore=CVS |
| 13 |
|
| 14 |
# Add files or directories matching the regex patterns to the blacklist. The |
| 15 |
# regex matches against base names, not paths. |
| 16 |
ignore-patterns= |
| 17 |
|
| 18 |
# Pickle collected data for later comparisons. |
| 19 |
persistent=yes |
| 20 |
|
| 21 |
# List of plugins (as comma separated values of python modules names) to load, |
| 22 |
# usually to register additional checkers. |
| 23 |
load-plugins= |
| 24 |
|
| 25 |
# Use multiple processes to speed up Pylint. |
| 26 |
jobs=2 |
| 27 |
|
| 28 |
# Allow loading of arbitrary C extensions. Extensions are imported into the |
| 29 |
# active Python interpreter and may run arbitrary code. |
| 30 |
unsafe-load-any-extension=no |
| 31 |
|
| 32 |
# A comma-separated list of package or module names from where C extensions may |
| 33 |
# be loaded. Extensions are loading into the active Python interpreter and may |
| 34 |
# run arbitrary code |
| 35 |
extension-pkg-whitelist= |
| 36 |
|
| 37 |
# Allow optimization of some AST trees. This will activate a peephole AST |
| 38 |
# optimizer, which will apply various small optimizations. For instance, it can |
| 39 |
# be used to obtain the result of joining multiple strings with the addition |
| 40 |
# operator. Joining a lot of strings can lead to a maximum recursion error in |
| 41 |
# Pylint and this flag can prevent that. It has one side effect, the resulting |
| 42 |
# AST will be different than the one from reality. This option is deprecated |
| 43 |
# and it will be removed in Pylint 2.0. |
| 44 |
optimize-ast=no |
| 45 |
|
| 46 |
|
| 47 |
[MESSAGES CONTROL] |
| 48 |
|
| 49 |
# Only show warnings with the listed confidence levels. Leave empty to show |
| 50 |
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED |
| 51 |
confidence= |
| 52 |
|
| 53 |
# Enable the message, report, category or checker with the given id(s). You can |
| 54 |
# either give multiple identifier separated by comma (,) or put this option |
| 55 |
# multiple time (only on the command line, not in the configuration file where |
| 56 |
# it should appear only once). See also the "--disable" option for examples. |
| 57 |
#enable= |
| 58 |
|
| 59 |
# Disable the message, report, category or checker with the given id(s). You |
| 60 |
# can either give multiple identifiers separated by comma (,) or put this |
| 61 |
# option multiple times (only on the command line, not in the configuration |
| 62 |
# file where it should appear only once).You can also use "--disable=all" to |
| 63 |
# disable everything first and then reenable specific checks. For example, if |
| 64 |
# you want to run only the similarities checker, you can use "--disable=all |
| 65 |
# --enable=similarities". If you want to run only the classes checker, but have |
| 66 |
# no Warning level messages displayed, use"--disable=all --enable=classes |
| 67 |
# --disable=W" |
| 68 |
# |
| 69 |
# Arranged by category and use symbolic names instead of ids. |
| 70 |
disable= |
| 71 |
# Convention |
| 72 |
missing-docstring, invalid-name, bad-continuation, |
| 73 |
# Error |
| 74 |
no-member, no-name-in-module, |
| 75 |
# Information |
| 76 |
locally-disabled, |
| 77 |
# Refactor |
| 78 |
no-self-use, too-many-arguments, too-many-branches, too-many-instance-attributes, |
| 79 |
too-many-locals, too-few-public-methods, too-many-public-methods, too-many-statements, |
| 80 |
# Refactor msgs that should eventually be enabled: |
| 81 |
redefined-variable-type, too-many-ancestors, |
| 82 |
too-many-nested-blocks, too-many-return-statements, |
| 83 |
# Warning |
| 84 |
unused-argument, protected-access, import-error, unused-variable, |
| 85 |
attribute-defined-outside-init, |
| 86 |
# Warning msgs that should eventually be enabled: |
| 87 |
arguments-differ, global-statement, fixme, broad-except |
| 88 |
|
| 89 |
[REPORTS] |
| 90 |
|
| 91 |
# Set the output format. Available formats are text, parseable, colorized, msvs |
| 92 |
# (visual studio) and html. You can also give a reporter class, eg |
| 93 |
# mypackage.mymodule.MyReporterClass. |
| 94 |
output-format=parseable |
| 95 |
|
| 96 |
# Put messages in a separate file for each module / package specified on the |
| 97 |
# command line instead of printing them on stdout. Reports (if any) will be |
| 98 |
# written in a file name "pylint_global.[txt|html]". This option is deprecated |
| 99 |
# and it will be removed in Pylint 2.0. |
| 100 |
files-output=no |
| 101 |
|
| 102 |
# Tells whether to display a full report or only the messages |
| 103 |
reports=no |
| 104 |
|
| 105 |
# Python expression which should return a note less than 10 (10 is the highest |
| 106 |
# note). You have access to the variables errors warning, statement which |
| 107 |
# respectively contain the number of errors / warnings messages and the total |
| 108 |
# number of statements analyzed. This is used by the global evaluation report |
| 109 |
# (RP0004). |
| 110 |
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
| 111 |
|
| 112 |
# Template used to display messages. This is a python new-style format string |
| 113 |
# used to format the message information. See doc for all details |
| 114 |
#msg-template= |
| 115 |
|
| 116 |
|
| 117 |
[SPELLING] |
| 118 |
|
| 119 |
# Spelling dictionary name. Available dictionaries: none. To make it working |
| 120 |
# install python-enchant package. |
| 121 |
spelling-dict= |
| 122 |
|
| 123 |
# List of comma separated words that should not be checked. |
| 124 |
spelling-ignore-words= |
| 125 |
|
| 126 |
# A path to a file that contains private dictionary; one word per line. |
| 127 |
spelling-private-dict-file= |
| 128 |
|
| 129 |
# Tells whether to store unknown words to indicated private dictionary in |
| 130 |
# --spelling-private-dict-file option instead of raising a message. |
| 131 |
spelling-store-unknown-words=no |
| 132 |
|
| 133 |
|
| 134 |
[BASIC] |
| 135 |
|
| 136 |
# Good variable names which should always be accepted, separated by a comma |
| 137 |
good-names=d,i,j,k,ex,Run,_,log |
| 138 |
|
| 139 |
# Bad variable names which should always be refused, separated by a comma |
| 140 |
bad-names=foo,bar,baz,toto,tutu,tata |
| 141 |
|
| 142 |
# Colon-delimited sets of names that determine each other's naming style when |
| 143 |
# the name regexes allow several styles. |
| 144 |
name-group= |
| 145 |
|
| 146 |
# Include a hint for the correct naming format with invalid-name |
| 147 |
include-naming-hint=no |
| 148 |
|
| 149 |
# List of decorators that produce properties, such as abc.abstractproperty. Add |
| 150 |
# to this list to register other decorators that produce valid properties. |
| 151 |
property-classes=abc.abstractproperty |
| 152 |
|
| 153 |
# Regular expression matching correct function names |
| 154 |
function-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 155 |
|
| 156 |
# Naming hint for function names |
| 157 |
function-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 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 matching correct constant names |
| 166 |
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 167 |
|
| 168 |
# Naming hint for constant names |
| 169 |
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 170 |
|
| 171 |
# Regular expression matching correct attribute names |
| 172 |
attr-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 173 |
|
| 174 |
# Naming hint for attribute names |
| 175 |
attr-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 176 |
|
| 177 |
# Regular expression matching correct argument names |
| 178 |
argument-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 179 |
|
| 180 |
# Naming hint for argument names |
| 181 |
argument-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 182 |
|
| 183 |
# Regular expression matching correct class attribute names |
| 184 |
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
| 185 |
|
| 186 |
# Naming hint for class attribute names |
| 187 |
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
| 188 |
|
| 189 |
# Regular expression matching correct inline iteration names |
| 190 |
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
| 191 |
|
| 192 |
# Naming hint for inline iteration names |
| 193 |
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ |
| 194 |
|
| 195 |
# Regular expression matching correct class names |
| 196 |
class-rgx=[A-Z_][a-zA-Z0-9]+$ |
| 197 |
|
| 198 |
# Naming hint for class names |
| 199 |
class-name-hint=[A-Z_][a-zA-Z0-9]+$ |
| 200 |
|
| 201 |
# Regular expression matching correct module names |
| 202 |
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 203 |
|
| 204 |
# Naming hint for module names |
| 205 |
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 206 |
|
| 207 |
# Regular expression matching correct method names |
| 208 |
method-rgx=[a-z_][a-z0-9_]{2,40}$ |
| 209 |
|
| 210 |
# Naming hint for method names |
| 211 |
method-name-hint=[a-z_][a-z0-9_]{2,30}$ |
| 212 |
|
| 213 |
# Regular expression which should only match function or class names that do |
| 214 |
# not require a docstring. |
| 215 |
no-docstring-rgx=__.*__ |
| 216 |
|
| 217 |
# Minimum line length for functions/classes that require docstrings, shorter |
| 218 |
# ones are exempt. |
| 219 |
docstring-min-length=-1 |
| 220 |
|
| 221 |
|
| 222 |
[ELIF] |
| 223 |
|
| 224 |
# Maximum number of nested blocks for function / method body |
| 225 |
max-nested-blocks=5 |
| 226 |
|
| 227 |
|
| 228 |
[LOGGING] |
| 229 |
|
| 230 |
# Logging modules to check that the string format arguments are in logging |
| 231 |
# function parameter format |
| 232 |
logging-modules=logging |
| 233 |
|
| 234 |
|
| 235 |
[FORMAT] |
| 236 |
|
| 237 |
# Maximum number of characters on a single line. |
| 238 |
max-line-length=120 |
| 239 |
|
| 240 |
# Regexp for a line that is allowed to be longer than the limit. |
| 241 |
ignore-long-lines=^\s*(# )?<?https?://\S+>?$ |
| 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 |
# List of optional constructs for which whitespace checking is disabled. `dict- |
| 248 |
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. |
| 249 |
# `trailing-comma` allows a space between comma and closing bracket: (a, ). |
| 250 |
# `empty-line` allows space-only lines. |
| 251 |
no-space-check=trailing-comma,dict-separator |
| 252 |
|
| 253 |
# Maximum number of lines in a module |
| 254 |
max-module-lines=1550 |
| 255 |
|
| 256 |
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 |
| 257 |
# tab). |
| 258 |
indent-string=' ' |
| 259 |
|
| 260 |
# Number of spaces of indent required inside a hanging or continued line. |
| 261 |
indent-after-paren=4 |
| 262 |
|
| 263 |
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF. |
| 264 |
expected-line-ending-format=LF |
| 265 |
|
| 266 |
|
| 267 |
[MISCELLANEOUS] |
| 268 |
|
| 269 |
# List of note tags to take in consideration, separated by a comma. |
| 270 |
notes=FIXME,XXX,TODO |
| 271 |
|
| 272 |
|
| 273 |
[VARIABLES] |
| 274 |
|
| 275 |
# Tells whether we should check for unused import in __init__ files. |
| 276 |
init-import=no |
| 277 |
|
| 278 |
# A regular expression matching the name of dummy variables (i.e. expectedly |
| 279 |
# not used). |
| 280 |
dummy-variables-rgx=_$|dummy |
| 281 |
|
| 282 |
# List of additional names supposed to be defined in builtins. Remember that |
| 283 |
# you should avoid to define new builtins when possible. |
| 284 |
additional-builtins=_,_n,__request__,WindowsError |
| 285 |
|
| 286 |
# List of strings which can identify a callback function by name. A callback |
| 287 |
# name must start or end with one of those strings. |
| 288 |
callbacks=cb_,_cb |
| 289 |
|
| 290 |
# List of qualified module names which can have objects that can redefine |
| 291 |
# builtins. |
| 292 |
redefining-builtins-modules= |
| 293 |
|
| 294 |
|
| 295 |
[TYPECHECK] |
| 296 |
|
| 297 |
# Tells whether missing members accessed in mixin class should be ignored. A |
| 298 |
# mixin class is detected if its name ends with "mixin" (case insensitive). |
| 299 |
ignore-mixin-members=yes |
| 300 |
|
| 301 |
# List of module names for which member attributes should not be checked |
| 302 |
# (useful for modules/projects where namespaces are manipulated during runtime |
| 303 |
# and thus existing member attributes cannot be deduced by static analysis. It |
| 304 |
# supports qualified module names, as well as Unix pattern matching. |
| 305 |
ignored-modules= |
| 306 |
|
| 307 |
# List of class names for which member attributes should not be checked (useful |
| 308 |
# for classes with dynamically set attributes). This supports the use of |
| 309 |
# qualified names. |
| 310 |
ignored-classes=SQLObject,twisted.internet.reactor |
| 311 |
|
| 312 |
# List of members which are set dynamically and missed by pylint inference |
| 313 |
# system, and so shouldn't trigger E1101 when accessed. Python regular |
| 314 |
# expressions are accepted. |
| 315 |
generated-members=REQUEST,acl_users,aq_parent |
| 316 |
|
| 317 |
# List of decorators that produce context managers, such as |
| 318 |
# contextlib.contextmanager. Add to this list to register other decorators that |
| 319 |
# produce valid context managers. |
| 320 |
contextmanager-decorators=contextlib.contextmanager |
| 321 |
|
| 322 |
|
| 323 |
[SIMILARITIES] |
| 324 |
|
| 325 |
# Minimum lines number of a similarity. |
| 326 |
min-similarity-lines=4 |
| 327 |
|
| 328 |
# Ignore comments when computing similarities. |
| 329 |
ignore-comments=yes |
| 330 |
|
| 331 |
# Ignore docstrings when computing similarities. |
| 332 |
ignore-docstrings=yes |
| 333 |
|
| 334 |
# Ignore imports when computing similarities. |
| 335 |
ignore-imports=no |
| 336 |
|
| 337 |
|
| 338 |
[IMPORTS] |
| 339 |
|
| 340 |
# Deprecated modules which should not be used, separated by a comma |
| 341 |
deprecated-modules=regsub,TERMIOS,Bastion,rexec |
| 342 |
|
| 343 |
# Create a graph of every (i.e. internal and external) dependencies in the |
| 344 |
# given file (report RP0402 must not be disabled) |
| 345 |
import-graph= |
| 346 |
|
| 347 |
# Create a graph of external dependencies in the given file (report RP0402 must |
| 348 |
# not be disabled) |
| 349 |
ext-import-graph= |
| 350 |
|
| 351 |
# Create a graph of internal dependencies in the given file (report RP0402 must |
| 352 |
# not be disabled) |
| 353 |
int-import-graph= |
| 354 |
|
| 355 |
# Force import order to recognize a module as part of the standard |
| 356 |
# compatibility libraries. |
| 357 |
known-standard-library= |
| 358 |
|
| 359 |
# Force import order to recognize a module as part of a third party library. |
| 360 |
known-third-party=enchant |
| 361 |
|
| 362 |
|
| 363 |
[DESIGN] |
| 364 |
|
| 365 |
# Maximum number of arguments for function / method |
| 366 |
max-args=7 |
| 367 |
|
| 368 |
# Argument names that match this expression will be ignored. Default to name |
| 369 |
# with leading underscore |
| 370 |
ignored-argument-names=_.* |
| 371 |
|
| 372 |
# Maximum number of locals for function / method body |
| 373 |
max-locals=15 |
| 374 |
|
| 375 |
# Maximum number of return / yield for function / method body |
| 376 |
max-returns=6 |
| 377 |
|
| 378 |
# Maximum number of branch for function / method body |
| 379 |
max-branches=12 |
| 380 |
|
| 381 |
# Maximum number of statements in function / method body |
| 382 |
max-statements=50 |
| 383 |
|
| 384 |
# Maximum number of parents for a class (see R0901). |
| 385 |
max-parents=7 |
| 386 |
|
| 387 |
# Maximum number of attributes for a class (see R0902). |
| 388 |
max-attributes=7 |
| 389 |
|
| 390 |
# Minimum number of public methods for a class (see R0903). |
| 391 |
min-public-methods=2 |
| 392 |
|
| 393 |
# Maximum number of public methods for a class (see R0904). |
| 394 |
max-public-methods=20 |
| 395 |
|
| 396 |
# Maximum number of boolean expressions in a if statement |
| 397 |
max-bool-expr=5 |
| 398 |
|
| 399 |
|
| 400 |
[CLASSES] |
| 401 |
|
| 402 |
# List of method names used to declare (i.e. assign) instance attributes. |
| 403 |
defining-attr-methods=__init__,__new__,setUp |
| 404 |
|
| 405 |
# List of valid names for the first argument in a class method. |
| 406 |
valid-classmethod-first-arg=cls |
| 407 |
|
| 408 |
# List of valid names for the first argument in a metaclass class method. |
| 409 |
valid-metaclass-classmethod-first-arg=mcs |
| 410 |
|
| 411 |
# List of member names, which should be excluded from the protected access |
| 412 |
# warning. |
| 413 |
exclude-protected=_asdict,_fields,_replace,_source,_make |
| 414 |
|
| 415 |
|
| 416 |
[EXCEPTIONS] |
| 417 |
|
| 418 |
# Exceptions that will emit a warning when being caught. Defaults to |
| 419 |
# "Exception" |
| 420 |
overgeneral-exceptions=Exception |