Debian Codegraph @

.pylintrc

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