hookmeup

A Git hook to automate your Pipenv and Django workflow
git clone git://git.danielmoch.com/hookmeup.git
Log | Files | Refs | README | LICENSE

.pylintrc (17783B)


      1 [MASTER]
      2 
      3 # A comma-separated list of package or module names from where C extensions may
      4 # be loaded. Extensions are loading into the active Python interpreter and may
      5 # run arbitrary code.
      6 extension-pkg-whitelist=
      7 
      8 # Add files or directories to the blacklist. They should be base names, not
      9 # paths.
     10 ignore=CVS .git
     11 
     12 # Add files or directories matching the regex patterns to the blacklist. The
     13 # regex matches against base names, not paths.
     14 ignore-patterns=
     15 
     16 # Python code to execute, usually for sys.path manipulation such as
     17 # pygtk.require().
     18 #init-hook=
     19 
     20 # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
     21 # number of processors available to use.
     22 jobs=1
     23 
     24 # Control the amount of potential inferred values when inferring a single
     25 # object. This can help the performance when dealing with large functions or
     26 # complex, nested conditions.
     27 limit-inference-results=100
     28 
     29 # List of plugins (as comma separated values of python modules names) to load,
     30 # usually to register additional checkers.
     31 load-plugins=
     32 
     33 # Pickle collected data for later comparisons.
     34 persistent=no
     35 
     36 # Specify a configuration file.
     37 #rcfile=
     38 
     39 # When enabled, pylint would attempt to guess common misconfiguration and emit
     40 # user-friendly hints instead of false-positive error messages.
     41 suggestion-mode=yes
     42 
     43 # Allow loading of arbitrary C extensions. Extensions are imported into the
     44 # active Python interpreter and may run arbitrary code.
     45 unsafe-load-any-extension=no
     46 
     47 
     48 [MESSAGES CONTROL]
     49 
     50 # Only show warnings with the listed confidence levels. Leave empty to show
     51 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
     52 confidence=
     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".
     63 disable=unsubscriptable-object,
     64         print-statement,
     65         parameter-unpacking,
     66         unpacking-in-except,
     67         old-raise-syntax,
     68         backtick,
     69         long-suffix,
     70         old-ne-operator,
     71         old-octal-literal,
     72         import-star-module-level,
     73         non-ascii-bytes-literal,
     74         raw-checker-failed,
     75         bad-inline-option,
     76         locally-disabled,
     77         locally-enabled,
     78         file-ignored,
     79         suppressed-message,
     80         useless-suppression,
     81         deprecated-pragma,
     82         use-symbolic-message-instead,
     83         apply-builtin,
     84         basestring-builtin,
     85         buffer-builtin,
     86         cmp-builtin,
     87         coerce-builtin,
     88         execfile-builtin,
     89         file-builtin,
     90         long-builtin,
     91         raw_input-builtin,
     92         reduce-builtin,
     93         standarderror-builtin,
     94         unicode-builtin,
     95         xrange-builtin,
     96         coerce-method,
     97         delslice-method,
     98         getslice-method,
     99         setslice-method,
    100         no-absolute-import,
    101         old-division,
    102         dict-iter-method,
    103         dict-view-method,
    104         next-method-called,
    105         metaclass-assignment,
    106         indexing-exception,
    107         raising-string,
    108         reload-builtin,
    109         oct-method,
    110         hex-method,
    111         nonzero-method,
    112         cmp-method,
    113         input-builtin,
    114         round-builtin,
    115         intern-builtin,
    116         unichr-builtin,
    117         map-builtin-not-iterating,
    118         zip-builtin-not-iterating,
    119         range-builtin-not-iterating,
    120         filter-builtin-not-iterating,
    121         using-cmp-argument,
    122         eq-without-hash,
    123         div-method,
    124         idiv-method,
    125         rdiv-method,
    126         exception-message-attribute,
    127         invalid-str-codec,
    128         sys-max-int,
    129         bad-python3-import,
    130         deprecated-string-function,
    131         deprecated-str-translate-call,
    132         deprecated-itertools-function,
    133         deprecated-types-field,
    134         next-method-defined,
    135         dict-items-not-iterating,
    136         dict-keys-not-iterating,
    137         dict-values-not-iterating,
    138         deprecated-operator-function,
    139         deprecated-urllib-function,
    140         xreadlines-attribute,
    141         deprecated-sys-function,
    142         exception-escape,
    143         comprehension-escape
    144 
    145 # Enable the message, report, category or checker with the given id(s). You can
    146 # either give multiple identifier separated by comma (,) or put this option
    147 # multiple time (only on the command line, not in the configuration file where
    148 # it should appear only once). See also the "--disable" option for examples.
    149 enable=c-extension-no-member
    150 
    151 
    152 [REPORTS]
    153 
    154 # Python expression which should return a note less than 10 (10 is the highest
    155 # note). You have access to the variables errors warning, statement which
    156 # respectively contain the number of errors / warnings messages and the total
    157 # number of statements analyzed. This is used by the global evaluation report
    158 # (RP0004).
    159 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
    160 
    161 # Template used to display messages. This is a python new-style format string
    162 # used to format the message information. See doc for all details.
    163 #msg-template=
    164 
    165 # Set the output format. Available formats are text, parseable, colorized, json
    166 # and msvs (visual studio). You can also give a reporter class, e.g.
    167 # mypackage.mymodule.MyReporterClass.
    168 output-format=text
    169 
    170 # Tells whether to display a full report or only the messages.
    171 reports=yes
    172 
    173 # Activate the evaluation score.
    174 score=yes
    175 
    176 
    177 [REFACTORING]
    178 
    179 # Maximum number of nested blocks for function / method body
    180 max-nested-blocks=5
    181 
    182 # Complete name of functions that never returns. When checking for
    183 # inconsistent-return-statements if a never returning function is called then
    184 # it will be considered as an explicit return statement and no message will be
    185 # printed.
    186 never-returning-functions=sys.exit
    187 
    188 
    189 [VARIABLES]
    190 
    191 # List of additional names supposed to be defined in builtins. Remember that
    192 # you should avoid to define new builtins when possible.
    193 additional-builtins=
    194 
    195 # Tells whether unused global variables should be treated as a violation.
    196 allow-global-unused-variables=yes
    197 
    198 # List of strings which can identify a callback function by name. A callback
    199 # name must start or end with one of those strings.
    200 callbacks=cb_,
    201           _cb
    202 
    203 # A regular expression matching the name of dummy variables (i.e. expected to
    204 # not be used).
    205 dummy-variables-rgx=_$|dummy
    206 
    207 # Argument names that match this expression will be ignored. Default to name
    208 # with leading underscore.
    209 ignored-argument-names=mock.*
    210 
    211 # Tells whether we should check for unused import in __init__ files.
    212 init-import=no
    213 
    214 # List of qualified module names which can have objects that can redefine
    215 # builtins.
    216 redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
    217 
    218 
    219 [LOGGING]
    220 
    221 # Logging modules to check that the string format arguments are in logging
    222 # function parameter format.
    223 logging-modules=logging
    224 
    225 
    226 [TYPECHECK]
    227 
    228 # List of decorators that produce context managers, such as
    229 # contextlib.contextmanager. Add to this list to register other decorators that
    230 # produce valid context managers.
    231 contextmanager-decorators=contextlib.contextmanager, pytest.fixture
    232 
    233 # List of members which are set dynamically and missed by pylint inference
    234 # system, and so shouldn't trigger E1101 when accessed. Python regular
    235 # expressions are accepted.
    236 generated-members=REQUEST,
    237                   acl_users,
    238                   aq_parent,
    239                   assert_called_once_with,
    240                   assert_called_once,
    241                   call_count,
    242                   print,
    243                   call_args_list,
    244                   assert_any_call,
    245                   assert_not_called
    246 
    247 # Tells whether missing members accessed in mixin class should be ignored. A
    248 # mixin class is detected if its name ends with "mixin" (case insensitive).
    249 ignore-mixin-members=yes
    250 
    251 # Tells whether to warn about missing members when the owner of the attribute
    252 # is inferred to be None.
    253 ignore-none=yes
    254 
    255 # This flag controls whether pylint should warn about no-member and similar
    256 # checks whenever an opaque object is returned when inferring. The inference
    257 # can return multiple potential results while evaluating a Python object, but
    258 # some branches might not be evaluated, which results in partial inference. In
    259 # that case, it might be useful to still emit no-member and other checks for
    260 # the rest of the inferred objects.
    261 ignore-on-opaque-inference=yes
    262 
    263 # List of class names for which member attributes should not be checked (useful
    264 # for classes with dynamically set attributes). This supports the use of
    265 # qualified names.
    266 ignored-classes=SQLObject,
    267                 DateTimeField,
    268                 CharField,
    269                 ForecastioDataBlock
    270 
    271 # List of module names for which member attributes should not be checked
    272 # (useful for modules/projects where namespaces are manipulated during runtime
    273 # and thus existing member attributes cannot be deduced by static analysis. It
    274 # supports qualified module names, as well as Unix pattern matching.
    275 ignored-modules=
    276 
    277 # Show a hint with possible names when a member name was not found. The aspect
    278 # of finding the hint is based on edit distance.
    279 missing-member-hint=yes
    280 
    281 # The minimum edit distance a name should have in order to be considered a
    282 # similar match for a missing member name.
    283 missing-member-hint-distance=1
    284 
    285 # The total number of similar names that should be taken in consideration when
    286 # showing a hint for a missing member.
    287 missing-member-max-choices=1
    288 
    289 
    290 [MISCELLANEOUS]
    291 
    292 # List of note tags to take in consideration, separated by a comma.
    293 notes=FIXME,
    294       XXX,
    295       TODO
    296 
    297 
    298 [BASIC]
    299 
    300 # Naming style matching correct argument names.
    301 argument-naming-style=snake_case
    302 
    303 # Regular expression matching correct argument names. Overrides argument-
    304 # naming-style.
    305 argument-rgx=[a-z_][a-z0-9_]{2,30}$
    306 
    307 # Naming style matching correct attribute names.
    308 attr-naming-style=snake_case
    309 
    310 # Regular expression matching correct attribute names. Overrides attr-naming-
    311 # style.
    312 attr-rgx=[a-z_][a-z0-9_]{2,30}$
    313 
    314 # Bad variable names which should always be refused, separated by a comma.
    315 bad-names=foo,
    316           bar,
    317           baz,
    318           toto,
    319           tutu,
    320           tata
    321 
    322 # Naming style matching correct class attribute names.
    323 class-attribute-naming-style=any
    324 
    325 # Regular expression matching correct class attribute names. Overrides class-
    326 # attribute-naming-style.
    327 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
    328 
    329 # Naming style matching correct class names.
    330 class-naming-style=PascalCase
    331 
    332 # Regular expression matching correct class names. Overrides class-naming-
    333 # style.
    334 class-rgx=[A-Z_][a-zA-Z0-9]+$
    335 
    336 # Naming style matching correct constant names.
    337 const-naming-style=UPPER_CASE
    338 
    339 # Regular expression matching correct constant names. Overrides const-naming-
    340 # style.
    341 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
    342 
    343 # Minimum line length for functions/classes that require docstrings, shorter
    344 # ones are exempt.
    345 docstring-min-length=-1
    346 
    347 # Naming style matching correct function names.
    348 function-naming-style=snake_case
    349 
    350 # Regular expression matching correct function names. Overrides function-
    351 # naming-style.
    352 function-rgx=[a-z_][a-z0-9_]{2,30}$
    353 
    354 # Good variable names which should always be accepted, separated by a comma.
    355 good-names=i,
    356            j,
    357            k,
    358            ex,
    359            Run,
    360            main,
    361            _
    362 
    363 # Include a hint for the correct naming format with invalid-name.
    364 include-naming-hint=no
    365 
    366 # Naming style matching correct inline iteration names.
    367 inlinevar-naming-style=any
    368 
    369 # Regular expression matching correct inline iteration names. Overrides
    370 # inlinevar-naming-style.
    371 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
    372 
    373 # Naming style matching correct method names.
    374 method-naming-style=snake_case
    375 
    376 # Regular expression matching correct method names. Overrides method-naming-
    377 # style.
    378 method-rgx=[a-z_][a-z0-9_]{2,30}$
    379 
    380 # Naming style matching correct module names.
    381 module-naming-style=snake_case
    382 
    383 # Regular expression matching correct module names. Overrides module-naming-
    384 # style.
    385 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
    386 
    387 # Colon-delimited sets of names that determine each other's naming style when
    388 # the name regexes allow several styles.
    389 name-group=
    390 
    391 # Regular expression which should only match function or class names that do
    392 # not require a docstring.
    393 no-docstring-rgx=__.*__
    394 
    395 # List of decorators that produce properties, such as abc.abstractproperty. Add
    396 # to this list to register other decorators that produce valid properties.
    397 # These decorators are taken in consideration only for invalid-name.
    398 property-classes=abc.abstractproperty
    399 
    400 # Naming style matching correct variable names.
    401 variable-naming-style=snake_case
    402 
    403 # Regular expression matching correct variable names. Overrides variable-
    404 # naming-style.
    405 variable-rgx=[a-z_][a-z0-9_]{2,30}$
    406 
    407 
    408 [FORMAT]
    409 
    410 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
    411 expected-line-ending-format=
    412 
    413 # Regexp for a line that is allowed to be longer than the limit.
    414 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
    415 
    416 # Number of spaces of indent required inside a hanging  or continued line.
    417 indent-after-paren=8
    418 
    419 # String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
    420 # tab).
    421 indent-string='    '
    422 
    423 # Maximum number of characters on a single line.
    424 max-line-length=80
    425 
    426 # Maximum number of lines in a module.
    427 max-module-lines=1000
    428 
    429 # List of optional constructs for which whitespace checking is disabled. `dict-
    430 # separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
    431 # `trailing-comma` allows a space between comma and closing bracket: (a, ).
    432 # `empty-line` allows space-only lines.
    433 no-space-check=trailing-comma,
    434                dict-separator
    435 
    436 # Allow the body of a class to be on the same line as the declaration if body
    437 # contains single statement.
    438 single-line-class-stmt=no
    439 
    440 # Allow the body of an if to be on the same line as the test if there is no
    441 # else.
    442 single-line-if-stmt=no
    443 
    444 
    445 [SPELLING]
    446 
    447 # Limits count of emitted suggestions for spelling mistakes.
    448 max-spelling-suggestions=4
    449 
    450 # Spelling dictionary name. Available dictionaries: none. To make it working
    451 # install python-enchant package..
    452 spelling-dict=
    453 
    454 # List of comma separated words that should not be checked.
    455 spelling-ignore-words=
    456 
    457 # A path to a file that contains private dictionary; one word per line.
    458 spelling-private-dict-file=
    459 
    460 # Tells whether to store unknown words to indicated private dictionary in
    461 # --spelling-private-dict-file option instead of raising a message.
    462 spelling-store-unknown-words=no
    463 
    464 
    465 [SIMILARITIES]
    466 
    467 # Ignore comments when computing similarities.
    468 ignore-comments=yes
    469 
    470 # Ignore docstrings when computing similarities.
    471 ignore-docstrings=yes
    472 
    473 # Ignore imports when computing similarities.
    474 ignore-imports=no
    475 
    476 # Minimum lines number of a similarity.
    477 min-similarity-lines=4
    478 
    479 
    480 [DESIGN]
    481 
    482 # Maximum number of arguments for function / method.
    483 max-args=5
    484 
    485 # Maximum number of attributes for a class (see R0902).
    486 max-attributes=7
    487 
    488 # Maximum number of boolean expressions in an if statement.
    489 max-bool-expr=5
    490 
    491 # Maximum number of branch for function / method body.
    492 max-branches=20
    493 
    494 # Maximum number of locals for function / method body.
    495 max-locals=15
    496 
    497 # Maximum number of parents for a class (see R0901).
    498 max-parents=7
    499 
    500 # Maximum number of public methods for a class (see R0904).
    501 max-public-methods=20
    502 
    503 # Maximum number of return / yield for function / method body.
    504 max-returns=6
    505 
    506 # Maximum number of statements in function / method body.
    507 max-statements=50
    508 
    509 # Minimum number of public methods for a class (see R0903).
    510 min-public-methods=2
    511 
    512 
    513 [CLASSES]
    514 
    515 # List of method names used to declare (i.e. assign) instance attributes.
    516 defining-attr-methods=__init__,
    517                       __new__,
    518                       setUp
    519 
    520 # List of member names, which should be excluded from the protected access
    521 # warning.
    522 exclude-protected=_asdict,
    523                   _fields,
    524                   _replace,
    525                   _source,
    526                   _make
    527 
    528 # List of valid names for the first argument in a class method.
    529 valid-classmethod-first-arg=cls
    530 
    531 # List of valid names for the first argument in a metaclass class method.
    532 valid-metaclass-classmethod-first-arg=mcs
    533 
    534 
    535 [IMPORTS]
    536 
    537 # Allow wildcard imports from modules that define __all__.
    538 allow-wildcard-with-all=no
    539 
    540 # Analyse import fallback blocks. This can be used to support both Python 2 and
    541 # 3 compatible code, which means that the block might have code that exists
    542 # only in one or another interpreter, leading to false positives when analysed.
    543 analyse-fallback-blocks=no
    544 
    545 # Deprecated modules which should not be used, separated by a comma.
    546 deprecated-modules=regsub,
    547                    TERMIOS,
    548                    Bastion,
    549                    rexec
    550 
    551 # Create a graph of external dependencies in the given file (report RP0402 must
    552 # not be disabled).
    553 ext-import-graph=
    554 
    555 # Create a graph of every (i.e. internal and external) dependencies in the
    556 # given file (report RP0402 must not be disabled).
    557 import-graph=
    558 
    559 # Create a graph of internal dependencies in the given file (report RP0402 must
    560 # not be disabled).
    561 int-import-graph=
    562 
    563 # Force import order to recognize a module as part of the standard
    564 # compatibility libraries.
    565 known-standard-library=
    566 
    567 # Force import order to recognize a module as part of a third party library.
    568 known-third-party=enchant
    569 
    570 
    571 [EXCEPTIONS]
    572 
    573 # Exceptions that will emit a warning when being caught. Defaults to
    574 # "Exception".
    575 overgeneral-exceptions=Exception