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 ignore. They should be base names, not paths.
14 ignore=.git,qtpy,sphinxtogithub
16 # Pickle collected data for later comparisons.
19 # List of plugins (as comma separated values of python modules names) to load,
20 # usually to register additional checkers.
23 # Use multiple processes to speed up Pylint.
26 # Allow loading of arbitrary C extensions. Extensions are imported into the
27 # active Python interpreter and may run arbitrary code.
28 unsafe-load-any-extension=no
30 # A comma-separated list of package or module names from where C extensions may
31 # be loaded. Extensions are loading into the active Python interpreter and may
33 extension-pkg-whitelist=binascii,math,PyQt4,PyQt5,PyQt6,PySide,PySide2,select,struct,struct.pack,struct.unpack
37 # Only show warnings with the listed confidence levels. Leave empty to show
38 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
41 # Enable the message, report, category or checker with the given id(s). You can
42 # either give multiple identifier separated by comma (,) or put this option
43 # multiple time. See also the "--disable" option for examples.
46 # Disable the message, report, category or checker with the given id(s). You
47 # can either give multiple identifiers separated by comma (,) or put this
48 # option multiple times (only on the command line, not in the configuration
49 # file where it should appear only once).You can also use "--disable=all" to
50 # disable everything first and then reenable specific checks. For example, if
51 # you want to run only the similarities checker, you can use "--disable=all
52 # --enable=similarities". If you want to run only the classes checker, but have
53 # no Warning level messages displayed, use"--disable=all --enable=classes
57 consider-using-f-string,
64 too-many-instance-attributes,
65 useless-object-inheritance,
70 # Set the output format. Available formats are text, parseable, colorized, msvs
71 # (visual studio) and html. You can also give a reporter class, eg
72 # mypackage.mymodule.MyReporterClass.
75 # Tells whether to display a full report or only the messages
78 # Python expression which should return a note less than 10 (10 is the highest
79 # note). You have access to the variables errors warning, statement which
80 # respectively contain the number of errors / warnings messages and the total
81 # number of statements analyzed. This is used by the global evaluation report
83 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
85 # Template used to display messages. This is a python new-style format string
86 # used to format the message information. See doc for all details
87 msg-template={path}:{line}:{column}: {msg} ({symbol})
92 # Good variable names which should always be accepted, separated by a comma
93 good-names=f,i,j,k,ok,v,_
95 # Bad variable names which should always be refused, separated by a comma
98 # Colon-delimited sets of names that determine each other's naming style when
99 # the name regexes allow several styles.
102 # Include a hint for the correct naming format with invalid-name
103 include-naming-hint=yes
105 # Regular expression matching correct function names
106 function-rgx=[a-z_][a-z0-9_]{2,30}$
108 # Regular expression matching correct variable names
109 variable-rgx=[a-z_][a-z0-9_]{2,30}$
111 # Regular expression matching correct constant names
112 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
114 # Regular expression matching correct attribute names
115 attr-rgx=[a-z_][a-z0-9_]{2,30}$
117 # Regular expression matching correct argument names
118 argument-rgx=[a-z_][a-z0-9_]{2,30}$
120 # Regular expression matching correct class attribute names
121 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
123 # Regular expression matching correct inline iteration names
124 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
126 # Regular expression matching correct class names
127 class-rgx=[A-Z_][a-zA-Z0-9]+$
129 # Regular expression matching correct module names
130 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
132 # Regular expression matching correct method names
133 method-rgx=[a-z_][a-z0-9_]{2,30}$
135 # Regular expression which should only match function or class names that do
136 # not require a docstring.
137 no-docstring-rgx=__.*__
139 # Minimum line length for functions/classes that require docstrings, shorter
141 docstring-min-length=-1
146 # List of note tags to take in consideration, separated by a comma.
152 # Maximum number of characters on a single line.
155 # Regexp for a line that is allowed to be longer than the limit.
156 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
158 # Allow the body of an if to be on the same line as the test if there is no
160 single-line-if-stmt=no
162 # Maximum number of lines in a module
163 max-module-lines=3000
165 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
169 # Number of spaces of indent required inside a hanging or continued line.
172 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
173 expected-line-ending-format=LF
178 # Tells whether missing members accessed in mixin class should be ignored. A
179 # mixin class is detected if its name ends with "mixin" (case insensitive).
180 ignore-mixin-members=yes
182 # List of module names for which member attributes should not be checked
183 # (useful for modules/projects where namespaces are manipulated during runtime
184 # and thus existing member attributes cannot be deduced by static analysis
187 # List of classes names for which member attributes should not be checked
188 # (useful for classes with attributes dynamically set).
191 # List of members which are set dynamically and missed by pylint inference
192 # system, and so shouldn't trigger E0201 when accessed. Python regular
193 # expressions are accepted.
199 # Minimum lines number of a similarity.
200 min-similarity-lines=4
202 # Ignore comments when computing similarities.
205 # Ignore docstrings when computing similarities.
206 ignore-docstrings=yes
208 # Ignore imports when computing similarities.
214 # Spelling dictionary name. Available dictionaries: none. To make it working
215 # install python-enchant package.
218 # List of comma separated words that should not be checked.
219 spelling-ignore-words=
221 # A path to a file that contains private dictionary; one word per line.
222 spelling-private-dict-file=
224 # Tells whether to store unknown words to indicated private dictionary in
225 # --spelling-private-dict-file option instead of raising a message.
226 spelling-store-unknown-words=no
231 # Logging modules to check that the string format arguments are in logging
232 # function parameter format
233 logging-modules=logging
238 # Tells whether we should check for unused import in __init__ files.
241 # A regular expression matching the name of dummy variables (i.e. expectedly
243 dummy-variables-rgx=_$|dummy
245 # List of additional names supposed to be defined in builtins. Remember that
246 # you should avoid to define new builtins when possible.
249 # List of strings which can identify a callback function by name. A callback
250 # name must start or end with one of those strings.
256 # List of method names used to declare (i.e. assign) instance attributes.
257 defining-attr-methods=__init__,__new__,setUp
259 # List of valid names for the first argument in a class method.
260 valid-classmethod-first-arg=cls
262 # List of valid names for the first argument in a metaclass class method.
263 valid-metaclass-classmethod-first-arg=mcs
265 # List of member names, which should be excluded from the protected access
267 exclude-protected=_asdict,_fields,_replace,_source,_make
272 # Maximum number of arguments for function / method
275 # Argument names that match this expression will be ignored. Default to name
276 # with leading underscore
277 ignored-argument-names=_.*
279 # Maximum number of locals for function / method body
282 # Maximum number of return / yield for function / method body
285 # Maximum number of branch for function / method body
288 # Maximum number of statements in function / method body
291 # Maximum number of parents for a class (see R0901).
294 # Maximum number of attributes for a class (see R0902).
297 # Minimum number of public methods for a class (see R0903).
300 # Maximum number of public methods for a class (see R0904).
301 max-public-methods=40
306 # Deprecated modules which should not be used, separated by a comma
309 # Create a graph of every (i.e. internal and external) dependencies in the
310 # given file (report RP0402 must not be disabled)
313 # Create a graph of external dependencies in the given file (report RP0402 must
317 # Create a graph of internal dependencies in the given file (report RP0402 must