Fixed ovs -> openvswitch depends.
[openstack-build/neutron-build.git] / .pylintrc
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 #
6 # Note the 'openstack' below is intended to match only
7 # neutron.openstack.common.  If we ever have another 'openstack'
8 # dirname, then we'll need to expand the ignore features in pylint :/
9 ignore=.git,tests,openstack
10
11 [MESSAGES CONTROL]
12 # NOTE(gus): This is a long list.  A number of these are important and
13 # should be re-enabled once the offending code is fixed (or marked
14 # with a local disable)
15 disable=
16 # "F" Fatal errors that prevent further processing
17  import-error,
18 # "I" Informational noise
19  locally-disabled,
20 # "E" Error for important programming issues (likely bugs)
21  access-member-before-definition,
22  no-member,
23  no-method-argument,
24  no-self-argument,
25 # "W" Warnings for stylistic problems or minor programming issues
26  abstract-method,
27  arguments-differ,
28  attribute-defined-outside-init,
29  bad-builtin,
30  bad-indentation,
31  broad-except,
32  dangerous-default-value,
33  deprecated-lambda,
34  expression-not-assigned,
35  fixme,
36  global-statement,
37  no-init,
38  non-parent-init-called,
39  not-callable,
40  protected-access,
41  redefined-builtin,
42  redefined-outer-name,
43  signature-differs,
44  star-args,
45  super-init-not-called,
46  super-on-old-class,
47  unpacking-non-sequence,
48  unused-argument,
49  unused-import,
50  unused-variable,
51 # "C" Coding convention violations
52  bad-continuation,
53  invalid-name,
54  missing-docstring,
55  superfluous-parens,
56 # "R" Refactor recommendations
57  abstract-class-little-used,
58  abstract-class-not-used,
59  duplicate-code,
60  interface-not-implemented,
61  no-self-use,
62  too-few-public-methods,
63  too-many-ancestors,
64  too-many-arguments,
65  too-many-branches,
66  too-many-instance-attributes,
67  too-many-lines,
68  too-many-locals,
69  too-many-public-methods,
70  too-many-return-statements,
71  too-many-statements
72
73 [BASIC]
74 # Variable names can be 1 to 31 characters long, with lowercase and underscores
75 variable-rgx=[a-z_][a-z0-9_]{0,30}$
76
77 # Argument names can be 2 to 31 characters long, with lowercase and underscores
78 argument-rgx=[a-z_][a-z0-9_]{1,30}$
79
80 # Method names should be at least 3 characters long
81 # and be lowecased with underscores
82 method-rgx=([a-z_][a-z0-9_]{2,}|setUp|tearDown)$
83
84 # Module names matching neutron-* are ok (files in bin/)
85 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(neutron-[a-z0-9_-]+))$
86
87 # Don't require docstrings on tests.
88 no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$
89
90 [FORMAT]
91 # Maximum number of characters on a single line.
92 max-line-length=79
93
94 [VARIABLES]
95 # List of additional names supposed to be defined in builtins. Remember that
96 # you should avoid to define new builtins when possible.
97 # _ is used by our localization
98 additional-builtins=_
99
100 [CLASSES]
101 # List of interface methods to ignore, separated by a comma.
102 ignore-iface-methods=
103
104 [IMPORTS]
105 # Deprecated modules which should not be used, separated by a comma
106 deprecated-modules=
107 # should use openstack.common.jsonutils
108  json
109
110 [TYPECHECK]
111 # List of module names for which member attributes should not be checked
112 ignored-modules=six.moves,_MovedItems
113
114 [REPORTS]
115 # Tells whether to display a full report or only the messages
116 reports=no