| 1 |
# The format of this file isn't really documented; just use --generate-rcfile |
| 2 |
[MASTER] |
| 3 |
# Add <file or directory> to the black list. It should be a base name, not a |
| 4 |
# path. You may set this option multiple times. |
| 5 |
ignore=.git,tests |
| 6 |
|
| 7 |
[MESSAGES CONTROL] |
| 8 |
# NOTE(gus): This is a long list. A number of these are important and |
| 9 |
# should be re-enabled once the offending code is fixed (or marked |
| 10 |
# with a local disable) |
| 11 |
disable= |
| 12 |
# "F" Fatal errors that prevent further processing |
| 13 |
import-error, |
| 14 |
# "I" Informational noise |
| 15 |
c-extension-no-member, |
| 16 |
locally-disabled, |
| 17 |
# "E" Error for important programming issues (likely bugs) |
| 18 |
access-member-before-definition, |
| 19 |
no-member, |
| 20 |
no-method-argument, |
| 21 |
no-self-argument, |
| 22 |
not-an-iterable, |
| 23 |
# "W" Warnings for stylistic problems or minor programming issues |
| 24 |
abstract-method, |
| 25 |
arguments-differ, |
| 26 |
attribute-defined-outside-init, |
| 27 |
bad-indentation, |
| 28 |
broad-except, |
| 29 |
dangerous-default-value, |
| 30 |
expression-not-assigned, |
| 31 |
fixme, |
| 32 |
global-statement, |
| 33 |
keyword-arg-before-vararg, |
| 34 |
literal-comparison, |
| 35 |
not-callable, |
| 36 |
protected-access, |
| 37 |
raise-missing-from, |
| 38 |
redefined-builtin, |
| 39 |
redefined-outer-name, |
| 40 |
signature-differs, |
| 41 |
super-init-not-called, |
| 42 |
unpacking-non-sequence, |
| 43 |
unused-argument, |
| 44 |
unused-import, |
| 45 |
unused-variable, |
| 46 |
useless-super-delegation, |
| 47 |
# TODO(dougwig) - disable nonstandard-exception while we have neutron_lib shims |
| 48 |
# "C" Coding convention violations |
| 49 |
consider-iterating-dictionary, |
| 50 |
consider-using-enumerate, |
| 51 |
consider-using-f-string, |
| 52 |
invalid-name, |
| 53 |
len-as-condition, |
| 54 |
missing-docstring, |
| 55 |
multiple-statements, |
| 56 |
singleton-comparison, |
| 57 |
superfluous-parens, |
| 58 |
ungrouped-imports, |
| 59 |
wrong-import-order, |
| 60 |
# "R" Refactor recommendations |
| 61 |
consider-merging-isinstance, |
| 62 |
consider-using-ternary, |
| 63 |
duplicate-code, |
| 64 |
inconsistent-return-statements, |
| 65 |
no-else-return, |
| 66 |
redefined-argument-from-local, |
| 67 |
simplifiable-if-statement, |
| 68 |
too-few-public-methods, |
| 69 |
too-many-ancestors, |
| 70 |
too-many-arguments, |
| 71 |
too-many-branches, |
| 72 |
too-many-instance-attributes, |
| 73 |
too-many-lines, |
| 74 |
too-many-locals, |
| 75 |
too-many-nested-blocks, |
| 76 |
too-many-public-methods, |
| 77 |
too-many-return-statements, |
| 78 |
too-many-statements, |
| 79 |
# new for python3 version of pylint |
| 80 |
consider-using-set-comprehension, |
| 81 |
unnecessary-pass, |
| 82 |
|
| 83 |
[BASIC] |
| 84 |
# Variable names can be 1 to 31 characters long, with lowercase and underscores |
| 85 |
variable-rgx=[a-z_][a-z0-9_]{0,30}$ |
| 86 |
|
| 87 |
# Argument names can be 2 to 31 characters long, with lowercase and underscores |
| 88 |
argument-rgx=[a-z_][a-z0-9_]{1,30}$ |
| 89 |
|
| 90 |
# Method names should be at least 3 characters long |
| 91 |
# and be lowercased with underscores |
| 92 |
method-rgx=([a-z_][a-z0-9_]{2,}|setUp|tearDown)$ |
| 93 |
|
| 94 |
# Module names matching neutron-* are ok (files in bin/) |
| 95 |
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(neutron-[a-z0-9_-]+))$ |
| 96 |
|
| 97 |
# Don't require docstrings on tests. |
| 98 |
no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$ |
| 99 |
|
| 100 |
[FORMAT] |
| 101 |
# Maximum number of characters on a single line. |
| 102 |
max-line-length=79 |
| 103 |
|
| 104 |
[VARIABLES] |
| 105 |
# List of additional names supposed to be defined in builtins. Remember that |
| 106 |
# you should avoid to define new builtins when possible. |
| 107 |
# _ is used by our localization |
| 108 |
additional-builtins=_ |
| 109 |
|
| 110 |
[IMPORTS] |
| 111 |
# Deprecated modules which should not be used, separated by a comma |
| 112 |
deprecated-modules= |
| 113 |
# should use oslo_serialization.jsonutils |
| 114 |
json, |
| 115 |
six |
| 116 |
|
| 117 |
[TYPECHECK] |
| 118 |
# List of module names for which member attributes should not be checked |
| 119 |
ignored-modules=_MovedItems |
| 120 |
|
| 121 |
[REPORTS] |
| 122 |
# Tells whether to display a full report or only the messages |
| 123 |
reports=no |