Debian Codegraph @

.pylintrc

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