Debian Codegraph @

.pylintrc

raw
1 [MASTER]
2
3 # Specify a configuration file.
4 #rcfile=
5
6 # Python code to execute, usually for sys.path manipulation such as
7 # pygtk.require().
8 #init-hook=
9
10 # Add files or directories to the blacklist. They should be base names, not
11 # paths.
12 ignore=.git,BUILD
13
14 # Pickle collected data for later comparisons.
15 persistent=yes
16
17 # List of plugins (as comma separated values of python modules names) to load,
18 # usually to register additional checkers.
19 load-plugins=
20
21 # DEPRECATED
22 #include-ids=no
23
24 # DEPRECATED
25 #symbols=no
26
27
28 [REPORTS]
29
30 # Set the output format. Available formats are text, parseable, colorized, msvs
31 # (visual studio) and html. You can also give a reporter class, eg
32 # mypackage.mymodule.MyReporterClass.
33 output-format=text
34
35 # Tells whether to display a full report or only the messages
36 reports=no
37
38 # Python expression which should return a note less than 10 (10 is the highest
39 # note). You have access to the variables errors warning, statement which
40 # respectively contain the number of errors / warnings messages and the total
41 # number of statements analyzed. This is used by the global evaluation report
42 # (RP0004).
43 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
44
45 # Template used to display messages. This is a python new-style format string
46 # used to format the message information. See doc for all details
47 msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}"
48
49
50 [MESSAGES CONTROL]
51
52 # Enable the message, report, category or checker with the given id(s). You can
53 # either give multiple identifier separated by comma (,) or put this option
54 # multiple time. See also the "--disable" option for examples.
55
56 enable=all
57
58
59 # Disable the message, report, category or checker with the given id(s). You
60 # can either give multiple identifiers separated by comma (,) or put this
61 # option multiple times (only on the command line, not in the configuration
62 # file where it should appear only once).You can also use "--disable=all" to
63 # disable everything first and then reenable specific checks. For example, if
64 # you want to run only the similarities checker, you can use "--disable=all
65 # --enable=similarities". If you want to run only the classes checker, but have
66 # no Warning level messages displayed, use"--disable=all --enable=classes
67 # --disable=W"
68
69 disable=locally-disabled,
70 suppressed-message,
71 missing-docstring,
72 too-many-lines,
73 multiple-statements,
74 superfluous-parens,
75 ungrouped-imports,
76 wrong-import-position,
77 no-self-argument,
78 no-member,
79 no-value-for-parameter,
80 too-many-function-args,
81 unsubscriptable-object,
82 too-many-nested-blocks,
83 duplicate-code,
84 too-few-public-methods,
85 too-many-public-methods,
86 too-many-branches,
87 too-many-arguments,
88 too-many-locals,
89 too-many-statements,
90 attribute-defined-outside-init,
91 protected-access,
92 arguments-differ,
93 abstract-method,
94 fixme,
95 global-variable-undefined,
96 global-statement,
97 unused-variable,
98 unused-argument,
99 redefined-outer-name,
100 redefined-builtin,
101 undefined-loop-variable,
102 broad-except,
103 logging-format-interpolation,
104 anomalous-backslash-in-string,
105 len-as-condition,
106 no-else-return,
107 invalid-unary-operand-type,
108 no-name-in-module,
109 inconsistent-return-statements,
110 not-callable,
111 stop-iteration-return,
112 assignment-from-no-return,
113 c-extension-no-member,
114 cyclic-import,
115 isinstance-second-argument-not-valid-type,
116 missing-timeout,
117 consider-using-f-string,
118 consider-using-with,
119 use-implicit-booleaness-not-comparison-to-string,
120 use-implicit-booleaness-not-comparison-to-zero,
121 too-many-positional-arguments,
122 possibly-used-before-assignment,
123 arguments-renamed
124
125 # Notes:
126 # bad-continuation: Is buggy, see https://github.com/PyCQA/pylint/issues/3512
127
128
129 [VARIABLES]
130
131 # Tells whether we should check for unused import in __init__ files.
132 init-import=no
133
134 # A regular expression matching the name of dummy variables (i.e. expectedly
135 # not used).
136 dummy-variables-rgx=_$|dummy
137
138 # List of additional names supposed to be defined in builtins. Remember that
139 # you should avoid to define new builtins when possible.
140 additional-builtins=
141
142
143 [TYPECHECK]
144
145 # Tells whether missing members accessed in mixin class should be ignored. A
146 # mixin class is detected if its name ends with "mixin" (case insensitive).
147 ignore-mixin-members=yes
148
149 # List of module names for which member attributes should not be checked
150 # (useful for modules/projects where namespaces are manipulated during runtime
151 # and thus existing member attributes cannot be deduced by static analysis
152 ignored-modules=
153
154 # List of classes names for which member attributes should not be checked
155 # (useful for classes with attributes dynamically set).
156 ignored-classes=
157
158 # List of members which are set dynamically and missed by pylint inference
159 # system, and so shouldn't trigger E0201 when accessed. Python regular
160 # expressions are accepted.
161 #generated-members=REQUEST,acl_users,aq_parent
162 generated-members=
163
164
165 [LOGGING]
166
167 # Logging modules to check that the string format arguments are in logging
168 # function parameter format
169 logging-modules=logging
170
171
172 [MISCELLANEOUS]
173
174 # List of note tags to take in consideration, separated by a comma.
175 notes=FIXME,XXX,TODO
176
177
178 [BASIC]
179
180 # Good variable names which should always be accepted, separated by a comma
181 good-names=f,i,j,k,ex,Run,_
182
183 # Bad variable names which should always be refused, separated by a comma
184 bad-names=foo,bar,baz,toto,tutu,tata
185
186 # Colon-delimited sets of names that determine each other's naming style when
187 # the name regexes allow several styles.
188 name-group=
189
190 # Include a hint for the correct naming format with invalid-name
191 include-naming-hint=no
192
193 # Regular expression matching correct module names
194 module-rgx=(([a-z_][a-z0-9_\-]*)|([A-Z][a-zA-Z0-9]+))$
195
196 # Regular expression matching correct method names
197 method-rgx=[a-z_][a-zA-Z0-9_]{2,72}$
198
199 # Regular expression matching correct class names
200 class-rgx=[A-Z_][a-zA-Z0-9]+$
201
202 # Regular expression matching correct class attribute names
203 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
204
205 # Regular expression matching correct inline iteration names
206 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
207
208 # Regular expression matching correct variable names
209 variable-rgx=(_?[a-z_][a-z0-9_]{2,30}|__|mu|no)$
210
211 # Regular expression matching correct constant names
212 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
213
214 # Regular expression matching correct attribute names
215 attr-rgx=[a-z_][a-z0-9_]{2,30}$
216
217 # Regular expression matching correct argument names
218 argument-rgx=(_?[a-z_][a-z0-9_]{2,30}|__|mu)$
219
220 # Regular expression matching correct function names
221 function-rgx=_?[a-z_][a-zA-Z0-9_]{2,64}$
222
223 # Regular expression which should only match function or class names that do
224 # not require a docstring.
225 no-docstring-rgx=__.*__
226
227 # Minimum line length for functions/classes that require docstrings, shorter
228 # ones are exempt.
229 docstring-min-length=-1
230
231
232 [FORMAT]
233
234 # Maximum number of characters on a single line.
235 max-line-length=92
236
237 # Regexp for a line that is allowed to be longer than the limit.
238 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
239
240 # Allow the body of an if to be on the same line as the test if there is no
241 # else.
242 single-line-if-stmt=no
243
244 # Maximum number of lines in a module
245 max-module-lines=1000
246
247 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
248 # tab).
249 indent-string=' '
250
251 # Number of spaces of indent required inside a hanging or continued line.
252 indent-after-paren=4
253
254
255 [SIMILARITIES]
256
257 # Minimum lines number of a similarity.
258 min-similarity-lines=4
259
260 # Ignore comments when computing similarities.
261 ignore-comments=yes
262
263 # Ignore docstrings when computing similarities.
264 ignore-docstrings=yes
265
266 # Ignore imports when computing similarities.
267 ignore-imports=no
268
269
270 [DESIGN]
271
272 # Maximum number of arguments for function / method
273 max-args=5
274
275 # Argument names that match this expression will be ignored. Default to name
276 # with leading underscore
277 ignored-argument-names=_.*
278
279 # Maximum number of locals for function / method body
280 max-locals=20
281
282 # Maximum number of return / yield for function / method body
283 max-returns=6
284
285 # Maximum number of branch for function / method body
286 max-branches=12
287
288 # Maximum number of statements in function / method body
289 max-statements=50
290
291 # Maximum number of parents for a class (see R0901).
292 max-parents=7
293
294 # Maximum number of attributes for a class (see R0902).
295 max-attributes=7
296
297 # Minimum number of public methods for a class (see R0903).
298 min-public-methods=2
299
300 # Maximum number of public methods for a class (see R0904).
301 max-public-methods=20
302
303
304 [IMPORTS]
305
306 # Deprecated modules which should not be used, separated by a comma
307 deprecated-modules=stringprep,optparse
308
309 # Create a graph of every (i.e. internal and external) dependencies in the
310 # given file (report RP0402 must not be disabled)
311 import-graph=
312
313 # Create a graph of external dependencies in the given file (report RP0402 must
314 # not be disabled)
315 ext-import-graph=
316
317 # Create a graph of internal dependencies in the given file (report RP0402 must
318 # not be disabled)
319 int-import-graph=
320
321
322 [CLASSES]
323
324 # List of interface methods to ignore, separated by a comma. This is used for
325 # instance to not check methods defines in Zope's Interface base class.
326 ## ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
327
328 # List of method names used to declare (i.e. assign) instance attributes.
329 defining-attr-methods=__init__,__new__,setUp
330
331 # List of valid names for the first argument in a class method.
332 valid-classmethod-first-arg=cls
333
334 # List of valid names for the first argument in a metaclass class method.
335 valid-metaclass-classmethod-first-arg=mcs
336
337
338 [EXCEPTIONS]
339
340 # Exceptions that will emit a warning when being caught. Defaults to
341 # "Exception"
342 overgeneral-exceptions=builtins.Exception