3 # Specify what version of Python to evaluate code against.
6 # Specify a configuration file.
9 # Python code to execute, usually for sys.path manipulation such as
13 # Add files or directories to the blacklist. They should be base names, not
15 ignore=.git,qtpy,sphinxtogithub
17 # Pickle collected data for later comparisons.
20 # List of plugins (as comma separated values of python modules names) to load,
21 # usually to register additional checkers.
24 # Use multiple processes to speed up Pylint.
27 # Allow loading of arbitrary C extensions. Extensions are imported into the
28 # active Python interpreter and may run arbitrary code.
29 unsafe-load-any-extension=no
31 # A comma-separated list of package or module names from where C extensions may
32 # be loaded. Extensions are loading into the active Python interpreter and may
34 extension-pkg-whitelist=binascii,math,PyQt4,PyQt5,PyQt6,PySide,PySide2,select,struct,struct.pack,struct.unpack
36 # Allow optimization of some AST trees. This will activate a peephole AST
37 # optimizer, which will apply various small optimizations. For instance, it can
38 # be used to obtain the result of joining multiple strings with the addition
39 # operator. Joining a lot of strings can lead to a maximum recursion error in
40 # Pylint and this flag can prevent that. It has one side effect, the resulting
41 # AST will be different than the one from reality.
47 # Only show warnings with the listed confidence levels. Leave empty to show
48 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
51 # Enable the message, report, category or checker with the given id(s). You can
52 # either give multiple identifier separated by comma (,) or put this option
53 # multiple time. See also the "--disable" option for examples.
56 # Disable the message, report, category or checker with the given id(s). You
57 # can either give multiple identifiers separated by comma (,) or put this
58 # option multiple times (only on the command line, not in the configuration
59 # file where it should appear only once).You can also use "--disable=all" to
60 # disable everything first and then reenable specific checks. For example, if
61 # you want to run only the similarities checker, you can use "--disable=all
62 # --enable=similarities". If you want to run only the classes checker, but have
63 # no Warning level messages displayed, use"--disable=all --enable=classes
77 too-many-instance-attributes,
79 useless-object-inheritance,
83 # Set the output format. Available formats are text, parseable, colorized, msvs
84 # (visual studio) and html. You can also give a reporter class, eg
85 # mypackage.mymodule.MyReporterClass.
88 # Put messages in a separate file for each module / package specified on the
89 # command line instead of printing them on stdout. Reports (if any) will be
90 # written in a file name "pylint_global.[txt|html]".
93 # Tells whether to display a full report or only the messages
96 # Python expression which should return a note less than 10 (10 is the highest
97 # note). You have access to the variables errors warning, statement which
98 # respectively contain the number of errors / warnings messages and the total
99 # number of statements analyzed. This is used by the global evaluation report
101 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
103 # Template used to display messages. This is a python new-style format string
104 # used to format the message information. See doc for all details
105 msg-template={path}:{line}:{column}: {msg} ({symbol})
110 # List of builtins function names that should not be used, separated by a comma
111 bad-functions=map,filter,input
113 # Good variable names which should always be accepted, separated by a comma
114 good-names=i,j,k,ex,Run,_
116 # Bad variable names which should always be refused, separated by a comma
117 bad-names=foo,bar,baz,toto,tutu,tata
119 # Colon-delimited sets of names that determine each other's naming style when
120 # the name regexes allow several styles.
123 # Include a hint for the correct naming format with invalid-name
124 include-naming-hint=yes
126 # Regular expression matching correct function names
127 function-rgx=[a-z_][a-z0-9_]{2,30}$
129 # Naming hint for function names
130 function-name-hint=[a-z_][a-z0-9_]{2,30}$
132 # Regular expression matching correct variable names
133 variable-rgx=[a-z_][a-z0-9_]{2,30}$
135 # Naming hint for variable names
136 variable-name-hint=[a-z_][a-z0-9_]{2,30}$
138 # Regular expression matching correct constant names
139 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
141 # Naming hint for constant names
142 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
144 # Regular expression matching correct attribute names
145 attr-rgx=[a-z_][a-z0-9_]{2,30}$
147 # Naming hint for attribute names
148 attr-name-hint=[a-z_][a-z0-9_]{2,30}$
150 # Regular expression matching correct argument names
151 argument-rgx=[a-z_][a-z0-9_]{2,30}$
153 # Naming hint for argument names
154 argument-name-hint=[a-z_][a-z0-9_]{2,30}$
156 # Regular expression matching correct class attribute names
157 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
159 # Naming hint for class attribute names
160 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
162 # Regular expression matching correct inline iteration names
163 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
165 # Naming hint for inline iteration names
166 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
168 # Regular expression matching correct class names
169 class-rgx=[A-Z_][a-zA-Z0-9]+$
171 # Naming hint for class names
172 class-name-hint=[A-Z_][a-zA-Z0-9]+$
174 # Regular expression matching correct module names
175 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
177 # Naming hint for module names
178 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
180 # Regular expression matching correct method names
181 method-rgx=[a-z_][a-z0-9_]{2,30}$
183 # Naming hint for method names
184 method-name-hint=[a-z_][a-z0-9_]{2,30}$
186 # Regular expression which should only match function or class names that do
187 # not require a docstring.
188 no-docstring-rgx=__.*__
190 # Minimum line length for functions/classes that require docstrings, shorter
192 docstring-min-length=-1
197 # List of note tags to take in consideration, separated by a comma.
203 # Maximum number of characters on a single line.
206 # Regexp for a line that is allowed to be longer than the limit.
207 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
209 # Allow the body of an if to be on the same line as the test if there is no
211 single-line-if-stmt=no
213 # List of optional constructs for which whitespace checking is disabled
216 # Maximum number of lines in a module
217 max-module-lines=3000
219 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
223 # Number of spaces of indent required inside a hanging or continued line.
226 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
227 expected-line-ending-format=LF
232 # Tells whether missing members accessed in mixin class should be ignored. A
233 # mixin class is detected if its name ends with "mixin" (case insensitive).
234 ignore-mixin-members=yes
236 # List of module names for which member attributes should not be checked
237 # (useful for modules/projects where namespaces are manipulated during runtime
238 # and thus existing member attributes cannot be deduced by static analysis
241 # List of classes names for which member attributes should not be checked
242 # (useful for classes with attributes dynamically set).
245 # List of members which are set dynamically and missed by pylint inference
246 # system, and so shouldn't trigger E0201 when accessed. Python regular
247 # expressions are accepted.
253 # Minimum lines number of a similarity.
254 min-similarity-lines=4
256 # Ignore comments when computing similarities.
259 # Ignore docstrings when computing similarities.
260 ignore-docstrings=yes
262 # Ignore imports when computing similarities.
268 # Spelling dictionary name. Available dictionaries: none. To make it working
269 # install python-enchant package.
272 # List of comma separated words that should not be checked.
273 spelling-ignore-words=
275 # A path to a file that contains private dictionary; one word per line.
276 spelling-private-dict-file=
278 # Tells whether to store unknown words to indicated private dictionary in
279 # --spelling-private-dict-file option instead of raising a message.
280 spelling-store-unknown-words=no
285 # Logging modules to check that the string format arguments are in logging
286 # function parameter format
287 logging-modules=logging
292 # Tells whether we should check for unused import in __init__ files.
295 # A regular expression matching the name of dummy variables (i.e. expectedly
297 dummy-variables-rgx=_$|dummy
299 # List of additional names supposed to be defined in builtins. Remember that
300 # you should avoid to define new builtins when possible.
303 # List of strings which can identify a callback function by name. A callback
304 # name must start or end with one of those strings.
310 # List of method names used to declare (i.e. assign) instance attributes.
311 defining-attr-methods=__init__,__new__,setUp
313 # List of valid names for the first argument in a class method.
314 valid-classmethod-first-arg=cls
316 # List of valid names for the first argument in a metaclass class method.
317 valid-metaclass-classmethod-first-arg=mcs
319 # List of member names, which should be excluded from the protected access
321 exclude-protected=_asdict,_fields,_replace,_source,_make
326 # Maximum number of arguments for function / method
329 # Argument names that match this expression will be ignored. Default to name
330 # with leading underscore
331 ignored-argument-names=_.*
333 # Maximum number of locals for function / method body
336 # Maximum number of return / yield for function / method body
339 # Maximum number of branch for function / method body
342 # Maximum number of statements in function / method body
345 # Maximum number of parents for a class (see R0901).
348 # Maximum number of attributes for a class (see R0902).
351 # Minimum number of public methods for a class (see R0903).
354 # Maximum number of public methods for a class (see R0904).
355 max-public-methods=40
360 # Deprecated modules which should not be used, separated by a comma
363 # Create a graph of every (i.e. internal and external) dependencies in the
364 # given file (report RP0402 must not be disabled)
367 # Create a graph of external dependencies in the given file (report RP0402 must
371 # Create a graph of internal dependencies in the given file (report RP0402 must
378 # Exceptions that will emit a warning when being caught. Defaults to
380 overgeneral-exceptions=Exception