1[MASTER]
2
3# A comma-separated list of package or module names from where C extensions may
4# be loaded. Extensions are loading into the active Python interpreter and may
5# run arbitrary code.
6extension-pkg-whitelist=
7
8# Specify a score threshold to be exceeded before program exits with error.
9fail-under=10
10
11# Add files or directories to the blacklist. They should be base names, not
12# paths.
13ignore=CVS
14
15# Add files or directories matching the regex patterns to the blacklist. The
16# regex matches against base names, not paths.
17ignore-patterns=
18
19# Python code to execute, usually for sys.path manipulation such as
20# pygtk.require().
21#init-hook=
22
23# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
24# number of processors available to use.
25jobs=1
26
27# Control the amount of potential inferred values when inferring a single
28# object. This can help the performance when dealing with large functions or
29# complex, nested conditions.
30limit-inference-results=100
31
32# List of plugins (as comma separated values of python module names) to load,
33# usually to register additional checkers.
34load-plugins=
35
36# Pickle collected data for later comparisons.
37persistent=yes
38
39# When enabled, pylint would attempt to guess common misconfiguration and emit
40# user-friendly hints instead of false-positive error messages.
41suggestion-mode=yes
42
43# Allow loading of arbitrary C extensions. Extensions are imported into the
44# active Python interpreter and may run arbitrary code.
45unsafe-load-any-extension=no
46
47
48[MESSAGES CONTROL]
49
50# Only show warnings with the listed confidence levels. Leave empty to show
51# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
52confidence=
53
54# Disable the message, report, category or checker with the given id(s). You
55# can either give multiple identifiers separated by comma (,) or put this
56# option multiple times (only on the command line, not in the configuration
57# file where it should appear only once). You can also use "--disable=all" to
58# disable everything first and then reenable specific checks. For example, if
59# you want to run only the similarities checker, you can use "--disable=all
60# --enable=similarities". If you want to run only the classes checker, but have
61# no Warning level messages displayed, use "--disable=all --enable=classes
62# --disable=W".
63disable=print-statement,
64        parameter-unpacking,
65        unpacking-in-except,
66        old-raise-syntax,
67        backtick,
68        long-suffix,
69        old-ne-operator,
70        old-octal-literal,
71        import-star-module-level,
72        non-ascii-bytes-literal,
73        raw-checker-failed,
74        bad-inline-option,
75        locally-disabled,
76        file-ignored,
77        suppressed-message,
78        useless-suppression,
79        deprecated-pragma,
80        use-symbolic-message-instead,
81        apply-builtin,
82        basestring-builtin,
83        buffer-builtin,
84        cmp-builtin,
85        coerce-builtin,
86        execfile-builtin,
87        file-builtin,
88        long-builtin,
89        raw_input-builtin,
90        reduce-builtin,
91        standarderror-builtin,
92        unicode-builtin,
93        xrange-builtin,
94        coerce-method,
95        delslice-method,
96        getslice-method,
97        setslice-method,
98        no-absolute-import,
99        old-division,
100        dict-iter-method,
101        dict-view-method,
102        next-method-called,
103        metaclass-assignment,
104        indexing-exception,
105        raising-string,
106        reload-builtin,
107        oct-method,
108        hex-method,
109        nonzero-method,
110        cmp-method,
111        input-builtin,
112        round-builtin,
113        intern-builtin,
114        unichr-builtin,
115        map-builtin-not-iterating,
116        zip-builtin-not-iterating,
117        range-builtin-not-iterating,
118        filter-builtin-not-iterating,
119        using-cmp-argument,
120        eq-without-hash,
121        div-method,
122        idiv-method,
123        rdiv-method,
124        exception-message-attribute,
125        invalid-str-codec,
126        sys-max-int,
127        bad-python3-import,
128        deprecated-string-function,
129        deprecated-str-translate-call,
130        deprecated-itertools-function,
131        deprecated-types-field,
132        next-method-defined,
133        dict-items-not-iterating,
134        dict-keys-not-iterating,
135        dict-values-not-iterating,
136        deprecated-operator-function,
137        deprecated-urllib-function,
138        xreadlines-attribute,
139        deprecated-sys-function,
140        exception-escape,
141        comprehension-escape,
142        missing-function-docstring, # Modified since here, include this line
143        missing-class-docstring,
144        missing-module-docstring,
145        wrong-import-order,
146        invalid-name,
147        too-few-public-methods,
148        too-many-locals,
149        bad-super-call,  # since we still haven't drop python2 support
150        too-many-nested-blocks,
151        too-many-branches,
152        too-many-statements,
153
154# Enable the message, report, category or checker with the given id(s). You can
155# either give multiple identifier separated by comma (,) or put this option
156# multiple time (only on the command line, not in the configuration file where
157# it should appear only once). See also the "--disable" option for examples.
158enable=c-extension-no-member
159
160
161[REPORTS]
162
163# Python expression which should return a score less than or equal to 10. You
164# have access to the variables 'error', 'warning', 'refactor', and 'convention'
165# which contain the number of messages in each category, as well as 'statement'
166# which is the total number of statements analyzed. This score is used by the
167# global evaluation report (RP0004).
168evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
169
170# Template used to display messages. This is a python new-style format string
171# used to format the message information. See doc for all details.
172#msg-template=
173
174# Set the output format. Available formats are text, parseable, colorized, json
175# and msvs (visual studio). You can also give a reporter class, e.g.
176# mypackage.mymodule.MyReporterClass.
177output-format=text
178
179# Tells whether to display a full report or only the messages.
180reports=no
181
182# Activate the evaluation score.
183score=yes
184
185
186[REFACTORING]
187
188# Maximum number of nested blocks for function / method body
189max-nested-blocks=5
190
191# Complete name of functions that never returns. When checking for
192# inconsistent-return-statements if a never returning function is called then
193# it will be considered as an explicit return statement and no message will be
194# printed.
195never-returning-functions=sys.exit
196
197
198[TYPECHECK]
199
200# List of decorators that produce context managers, such as
201# contextlib.contextmanager. Add to this list to register other decorators that
202# produce valid context managers.
203contextmanager-decorators=contextlib.contextmanager
204
205# List of members which are set dynamically and missed by pylint inference
206# system, and so shouldn't trigger E1101 when accessed. Python regular
207# expressions are accepted.
208generated-members=
209
210# Tells whether missing members accessed in mixin class should be ignored. A
211# mixin class is detected if its name ends with "mixin" (case insensitive).
212ignore-mixin-members=yes
213
214# Tells whether to warn about missing members when the owner of the attribute
215# is inferred to be None.
216ignore-none=yes
217
218# This flag controls whether pylint should warn about no-member and similar
219# checks whenever an opaque object is returned when inferring. The inference
220# can return multiple potential results while evaluating a Python object, but
221# some branches might not be evaluated, which results in partial inference. In
222# that case, it might be useful to still emit no-member and other checks for
223# the rest of the inferred objects.
224ignore-on-opaque-inference=yes
225
226# List of class names for which member attributes should not be checked (useful
227# for classes with dynamically set attributes). This supports the use of
228# qualified names.
229ignored-classes=optparse.Values,thread._local,_thread._local
230
231# List of module names for which member attributes should not be checked
232# (useful for modules/projects where namespaces are manipulated during runtime
233# and thus existing member attributes cannot be deduced by static analysis). It
234# supports qualified module names, as well as Unix pattern matching.
235ignored-modules=
236
237# Show a hint with possible names when a member name was not found. The aspect
238# of finding the hint is based on edit distance.
239missing-member-hint=yes
240
241# The minimum edit distance a name should have in order to be considered a
242# similar match for a missing member name.
243missing-member-hint-distance=1
244
245# The total number of similar names that should be taken in consideration when
246# showing a hint for a missing member.
247missing-member-max-choices=1
248
249# List of decorators that change the signature of a decorated function.
250signature-mutators=ttfw_idf.idf_example_test,ttfw_idf.idf_unit_test,ttfw_idf.idf_custom_test,ttfw_idf.idf_component_unit_test
251
252
253[SPELLING]
254
255# Limits count of emitted suggestions for spelling mistakes.
256max-spelling-suggestions=4
257
258# Spelling dictionary name. Available dictionaries: none. To make it work,
259# install the python-enchant package.
260spelling-dict=
261
262# List of comma separated words that should not be checked.
263spelling-ignore-words=
264
265# A path to a file that contains the private dictionary; one word per line.
266spelling-private-dict-file=
267
268# Tells whether to store unknown words to the private dictionary (see the
269# --spelling-private-dict-file option) instead of raising a message.
270spelling-store-unknown-words=no
271
272
273[FORMAT]
274
275# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
276expected-line-ending-format=
277
278# Regexp for a line that is allowed to be longer than the limit.
279ignore-long-lines=^\s*(# )?<?https?://\S+>?$
280
281# Number of spaces of indent required inside a hanging or continued line.
282indent-after-paren=4
283
284# String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
285# tab).
286indent-string='    '
287
288# Maximum number of characters on a single line.
289max-line-length=160
290
291# Maximum number of lines in a module.
292max-module-lines=1000
293
294# List of optional constructs for which whitespace checking is disabled. `dict-
295# separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
296# `trailing-comma` allows a space between comma and closing bracket: (a, ).
297# `empty-line` allows space-only lines.
298no-space-check=trailing-comma,
299               dict-separator
300
301# Allow the body of a class to be on the same line as the declaration if body
302# contains single statement.
303single-line-class-stmt=no
304
305# Allow the body of an if to be on the same line as the test if there is no
306# else.
307single-line-if-stmt=no
308
309
310[STRING]
311
312# This flag controls whether inconsistent-quotes generates a warning when the
313# character used as a quote delimiter is used inconsistently within a module.
314check-quote-consistency=no
315
316# This flag controls whether the implicit-str-concat should generate a warning
317# on implicit string concatenation in sequences defined over several lines.
318check-str-concat-over-line-jumps=no
319
320
321[LOGGING]
322
323# The type of string formatting that logging methods do. `old` means using %
324# formatting, `new` is for `{}` formatting.
325logging-format-style=old
326
327# Logging modules to check that the string format arguments are in logging
328# function parameter format.
329logging-modules=logging
330
331
332[MISCELLANEOUS]
333
334# List of note tags to take in consideration, separated by a comma.
335notes=FIXME,
336      XXX,
337      TODO
338
339# Regular expression of note tags to take in consideration.
340#notes-rgx=
341
342
343[SIMILARITIES]
344
345# Ignore comments when computing similarities.
346ignore-comments=yes
347
348# Ignore docstrings when computing similarities.
349ignore-docstrings=yes
350
351# Ignore imports when computing similarities.
352ignore-imports=no
353
354# Minimum lines number of a similarity.
355min-similarity-lines=4
356
357
358[VARIABLES]
359
360# List of additional names supposed to be defined in builtins. Remember that
361# you should avoid defining new builtins when possible.
362additional-builtins=
363
364# Tells whether unused global variables should be treated as a violation.
365allow-global-unused-variables=yes
366
367# List of strings which can identify a callback function by name. A callback
368# name must start or end with one of those strings.
369callbacks=cb_,
370          _cb
371
372# A regular expression matching the name of dummy variables (i.e. expected to
373# not be used).
374dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
375
376# Argument names that match this expression will be ignored. Default to name
377# with leading underscore.
378ignored-argument-names=_.*|^ignored_|^unused_
379
380# Tells whether we should check for unused import in __init__ files.
381init-import=no
382
383# List of qualified module names which can have objects that can redefine
384# builtins.
385redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
386
387
388[BASIC]
389
390# Naming style matching correct argument names.
391argument-naming-style=snake_case
392
393# Regular expression matching correct argument names. Overrides argument-
394# naming-style.
395#argument-rgx=
396
397# Naming style matching correct attribute names.
398attr-naming-style=snake_case
399
400# Regular expression matching correct attribute names. Overrides attr-naming-
401# style.
402#attr-rgx=
403
404# Bad variable names which should always be refused, separated by a comma.
405bad-names=foo,
406          bar,
407          baz,
408          toto,
409          tutu,
410          tata
411
412# Bad variable names regexes, separated by a comma. If names match any regex,
413# they will always be refused
414bad-names-rgxs=
415
416# Naming style matching correct class attribute names.
417class-attribute-naming-style=any
418
419# Regular expression matching correct class attribute names. Overrides class-
420# attribute-naming-style.
421#class-attribute-rgx=
422
423# Naming style matching correct class names.
424class-naming-style=PascalCase
425
426# Regular expression matching correct class names. Overrides class-naming-
427# style.
428#class-rgx=
429
430# Naming style matching correct constant names.
431const-naming-style=UPPER_CASE
432
433# Regular expression matching correct constant names. Overrides const-naming-
434# style.
435#const-rgx=
436
437# Minimum line length for functions/classes that require docstrings, shorter
438# ones are exempt.
439docstring-min-length=-1
440
441# Naming style matching correct function names.
442function-naming-style=snake_case
443
444# Regular expression matching correct function names. Overrides function-
445# naming-style.
446#function-rgx=
447
448# Good variable names which should always be accepted, separated by a comma.
449good-names=i,
450           j,
451           k,
452           ex,
453           Run,
454           _
455
456# Good variable names regexes, separated by a comma. If names match any regex,
457# they will always be accepted
458good-names-rgxs=
459
460# Include a hint for the correct naming format with invalid-name.
461include-naming-hint=no
462
463# Naming style matching correct inline iteration names.
464inlinevar-naming-style=any
465
466# Regular expression matching correct inline iteration names. Overrides
467# inlinevar-naming-style.
468#inlinevar-rgx=
469
470# Naming style matching correct method names.
471method-naming-style=snake_case
472
473# Regular expression matching correct method names. Overrides method-naming-
474# style.
475#method-rgx=
476
477# Naming style matching correct module names.
478module-naming-style=snake_case
479
480# Regular expression matching correct module names. Overrides module-naming-
481# style.
482#module-rgx=
483
484# Colon-delimited sets of names that determine each other's naming style when
485# the name regexes allow several styles.
486name-group=
487
488# Regular expression which should only match function or class names that do
489# not require a docstring.
490no-docstring-rgx=^_
491
492# List of decorators that produce properties, such as abc.abstractproperty. Add
493# to this list to register other decorators that produce valid properties.
494# These decorators are taken in consideration only for invalid-name.
495property-classes=abc.abstractproperty
496
497# Naming style matching correct variable names.
498variable-naming-style=snake_case
499
500# Regular expression matching correct variable names. Overrides variable-
501# naming-style.
502#variable-rgx=
503
504
505[DESIGN]
506
507# Maximum number of arguments for function / method.
508max-args=5
509
510# Maximum number of attributes for a class (see R0902).
511max-attributes=12
512
513# Maximum number of boolean expressions in an if statement (see R0916).
514max-bool-expr=5
515
516# Maximum number of branch for function / method body.
517max-branches=12
518
519# Maximum number of locals for function / method body.
520max-locals=15
521
522# Maximum number of parents for a class (see R0901).
523max-parents=7
524
525# Maximum number of public methods for a class (see R0904).
526max-public-methods=20
527
528# Maximum number of return / yield for function / method body.
529max-returns=6
530
531# Maximum number of statements in function / method body.
532max-statements=50
533
534# Minimum number of public methods for a class (see R0903).
535min-public-methods=2
536
537
538[CLASSES]
539
540# List of method names used to declare (i.e. assign) instance attributes.
541defining-attr-methods=__init__,
542                      __new__,
543                      setUp,
544                      __post_init__
545
546# List of member names, which should be excluded from the protected access
547# warning.
548exclude-protected=_asdict,
549                  _fields,
550                  _replace,
551                  _source,
552                  _make
553
554# List of valid names for the first argument in a class method.
555valid-classmethod-first-arg=cls
556
557# List of valid names for the first argument in a metaclass class method.
558valid-metaclass-classmethod-first-arg=cls
559
560
561[IMPORTS]
562
563# List of modules that can be imported at any level, not just the top level
564# one.
565allow-any-import-level=
566
567# Allow wildcard imports from modules that define __all__.
568allow-wildcard-with-all=no
569
570# Analyse import fallback blocks. This can be used to support both Python 2 and
571# 3 compatible code, which means that the block might have code that exists
572# only in one or another interpreter, leading to false positives when analysed.
573analyse-fallback-blocks=no
574
575# Deprecated modules which should not be used, separated by a comma.
576deprecated-modules=optparse,tkinter.tix
577
578# Create a graph of external dependencies in the given file (report RP0402 must
579# not be disabled).
580ext-import-graph=
581
582# Create a graph of every (i.e. internal and external) dependencies in the
583# given file (report RP0402 must not be disabled).
584import-graph=
585
586# Create a graph of internal dependencies in the given file (report RP0402 must
587# not be disabled).
588int-import-graph=
589
590# Force import order to recognize a module as part of the standard
591# compatibility libraries.
592known-standard-library=
593
594# Force import order to recognize a module as part of a third party library.
595known-third-party=enchant
596
597# Couples of modules and preferred modules, separated by a comma.
598preferred-modules=
599
600
601[EXCEPTIONS]
602
603# Exceptions that will emit a warning when being caught. Defaults to
604# "BaseException, Exception".
605overgeneral-exceptions=BaseException,
606                       Exception
607