| 1 |
# The format of this file isn't really documented; just use --generate-rcfile |
| 2 |
[MAIN] |
| 3 |
# Files or directories to be skipped. They should be base names, not paths. |
| 4 |
ignore=.git |
| 5 |
|
| 6 |
# Add files or directories matching the regex patterns to the ignore-list. The |
| 7 |
# regex matches against paths and can be in Posix or Windows format. |
| 8 |
ignore-paths= |
| 9 |
neutron/tests/base.py, |
| 10 |
neutron/tests/common/helpers.py, |
| 11 |
neutron/tests/fullstack/.*, |
| 12 |
neutron/tests/functional/agent/linux/test_iptables.py, |
| 13 |
neutron/tests/functional/agent/linux/test_utils.py, |
| 14 |
neutron/tests/functional/agent/l3/test_keepalived_state_change.py, |
| 15 |
neutron/tests/functional/agent/l3/test_legacy_router.py, |
| 16 |
neutron/tests/functional/common/ovn/test_utils.py, |
| 17 |
neutron/tests/functional/resources/process.py, |
| 18 |
neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovsdb_monitor.py, |
| 19 |
neutron/tests/unit/agent/common/test_resource_processing_queue.py, |
| 20 |
neutron/tests/unit/agent/linux/test_external_process.py, |
| 21 |
neutron/tests/unit/agent/linux/test_dhcp.py, |
| 22 |
neutron/tests/unit/agent/linux/test_utils.py, |
| 23 |
neutron/tests/unit/extensions/test_external_net.py, |
| 24 |
neutron/tests/unit/extensions/test_l3.py, |
| 25 |
neutron/tests/unit/ipam/fake_driver.py, |
| 26 |
neutron/tests/unit/objects/.*.py, |
| 27 |
neutron/tests/unit/plugins/ml2/test_security_group.py, |
| 28 |
neutron/tests/unit/plugins/ml2/drivers/test_type_vlan.py, |
| 29 |
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_tunnel.py, |
| 30 |
neutron/tests/unit/privileged/agent/linux/test_ip_lib.py, |
| 31 |
neutron/tests/unit/services/qos/drivers/test_manager.py, |
| 32 |
neutron/tests/unit/services/logapi/drivers/test_manager.py |
| 33 |
|
| 34 |
# List of plugins (as comma separated values of python module names) to load, |
| 35 |
# usually to register additional checkers. |
| 36 |
load-plugins=pylint.extensions.no_self_use |
| 37 |
|
| 38 |
# When enabled, pylint would attempt to guess common misconfiguration and emit |
| 39 |
# user-friendly hints instead of false-positive error messages. |
| 40 |
suggestion-mode=yes |
| 41 |
|
| 42 |
[MESSAGES CONTROL] |
| 43 |
# NOTE(gus): This is a long list. A number of these are important and |
| 44 |
# should be re-enabled once the offending code is fixed (or marked |
| 45 |
# with a local disable) |
| 46 |
disable= |
| 47 |
# "F" Fatal errors that prevent further processing |
| 48 |
import-error, |
| 49 |
# "I" Informational noise |
| 50 |
# "E" Error for important programming issues (likely bugs) |
| 51 |
access-member-before-definition, |
| 52 |
no-member, |
| 53 |
no-method-argument, |
| 54 |
no-self-argument, |
| 55 |
not-an-iterable, |
| 56 |
possibly-used-before-assignment, |
| 57 |
# "W" Warnings for stylistic problems or minor programming issues |
| 58 |
abstract-method, |
| 59 |
arguments-differ, |
| 60 |
attribute-defined-outside-init, |
| 61 |
broad-except, |
| 62 |
fixme, |
| 63 |
global-statement, |
| 64 |
not-callable, |
| 65 |
protected-access, |
| 66 |
redefined-builtin, |
| 67 |
redefined-outer-name, |
| 68 |
signature-differs, |
| 69 |
super-init-not-called, |
| 70 |
unpacking-non-sequence, |
| 71 |
unused-argument, |
| 72 |
unused-import, |
| 73 |
unused-variable, |
| 74 |
unnecessary-pass, |
| 75 |
raise-missing-from, |
| 76 |
arguments-renamed, |
| 77 |
broad-exception-raised, |
| 78 |
unspecified-encoding, |
| 79 |
unused-private-member, |
| 80 |
# "C" Coding convention violations |
| 81 |
consider-iterating-dictionary, |
| 82 |
consider-using-enumerate, |
| 83 |
invalid-name, |
| 84 |
missing-docstring, |
| 85 |
singleton-comparison, |
| 86 |
superfluous-parens, |
| 87 |
ungrouped-imports, |
| 88 |
wrong-import-order, |
| 89 |
consider-using-f-string, |
| 90 |
consider-using-dict-items, |
| 91 |
# "R" Refactor recommendations |
| 92 |
duplicate-code, |
| 93 |
inconsistent-return-statements, |
| 94 |
no-self-use, |
| 95 |
redefined-argument-from-local, |
| 96 |
too-few-public-methods, |
| 97 |
too-many-ancestors, |
| 98 |
too-many-arguments, |
| 99 |
too-many-branches, |
| 100 |
too-many-instance-attributes, |
| 101 |
too-many-lines, |
| 102 |
too-many-locals, |
| 103 |
too-many-nested-blocks, |
| 104 |
too-many-positional-arguments, |
| 105 |
too-many-public-methods, |
| 106 |
too-many-return-statements, |
| 107 |
too-many-statements, |
| 108 |
use-dict-literal |
| 109 |
|
| 110 |
[BASIC] |
| 111 |
# Variable names can be 1 to 31 characters long, with lowercase and underscores |
| 112 |
variable-rgx=[a-z_][a-z0-9_]{0,30}$ |
| 113 |
|
| 114 |
# Argument names can be 2 to 31 characters long, with lowercase and underscores |
| 115 |
argument-rgx=[a-z_][a-z0-9_]{1,30}$ |
| 116 |
|
| 117 |
# Method names should be at least 3 characters long |
| 118 |
# and be lowercased with underscores |
| 119 |
method-rgx=([a-z_][a-z0-9_]{2,}|setUp|tearDown)$ |
| 120 |
|
| 121 |
# Module names matching neutron-* are ok (files in bin/) |
| 122 |
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(neutron-[a-z0-9_-]+))$ |
| 123 |
|
| 124 |
# Don't require docstrings on tests. |
| 125 |
no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$ |
| 126 |
|
| 127 |
[FORMAT] |
| 128 |
# Maximum number of characters on a single line. |
| 129 |
max-line-length=79 |
| 130 |
|
| 131 |
[VARIABLES] |
| 132 |
# List of additional names supposed to be defined in builtins. Remember that |
| 133 |
# you should avoid to define new builtins when possible. |
| 134 |
# _ is used by our localization |
| 135 |
additional-builtins=_ |
| 136 |
|
| 137 |
[CLASSES] |
| 138 |
# List of valid names for the first argument in a class method. |
| 139 |
valid-classmethod-first-arg=cls |
| 140 |
|
| 141 |
# List of valid names for the first argument in a metaclass class method. |
| 142 |
valid-metaclass-classmethod-first-arg=cls |
| 143 |
|
| 144 |
[IMPORTS] |
| 145 |
# Deprecated modules which should not be used, separated by a comma |
| 146 |
deprecated-modules= |
| 147 |
# should use oslo_serialization.jsonutils |
| 148 |
json, |
| 149 |
six |
| 150 |
|
| 151 |
[TYPECHECK] |
| 152 |
# List of module names for which member attributes should not be checked |
| 153 |
ignored-modules=_MovedItems |
| 154 |
# List of decorators that change the signature of a decorated function |
| 155 |
signature-mutators= |
| 156 |
unittest.mock.patch, |
| 157 |
unittest.mock._patch_object |
| 158 |
|
| 159 |
[REPORTS] |
| 160 |
# Tells whether to display a full report or only the messages |
| 161 |
reports=no |