diff: move the search logic into the TextSearchWidget
[git-cola.git] / .pylintrc
blob66261990d86271fefef38e57c1f540cba8d9086a
1 [MASTER]
3 # Specify what version of Python to evaluate code against.
4 py-version = 3.6
6 # Specify a configuration file.
7 #rcfile=
9 # Python code to execute, usually for sys.path manipulation such as
10 # pygtk.require().
11 #init-hook=
13 # Add files or directories to the blacklist. They should be base names, not
14 # paths.
15 ignore=.git,qtpy,sphinxtogithub
17 # Pickle collected data for later comparisons.
18 persistent=yes
20 # List of plugins (as comma separated values of python modules names) to load,
21 # usually to register additional checkers.
22 load-plugins=
24 # Use multiple processes to speed up Pylint.
25 jobs=4
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
33 # run arbitrary code
34 extension-pkg-whitelist=binascii,math,PyQt4,PyQt5,PyQt6,PySide,PySide2,select,struct,struct.pack,struct.unpack
36 [MESSAGES CONTROL]
38 # Only show warnings with the listed confidence levels. Leave empty to show
39 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
40 confidence=
42 # Enable the message, report, category or checker with the given id(s). You can
43 # either give multiple identifier separated by comma (,) or put this option
44 # multiple time. See also the "--disable" option for examples.
45 #enable=
47 # Disable the message, report, category or checker with the given id(s). You
48 # can either give multiple identifiers separated by comma (,) or put this
49 # option multiple times (only on the command line, not in the configuration
50 # file where it should appear only once).You can also use "--disable=all" to
51 # disable everything first and then reenable specific checks. For example, if
52 # you want to run only the similarities checker, you can use "--disable=all
53 # --enable=similarities". If you want to run only the classes checker, but have
54 # no Warning level messages displayed, use"--disable=all --enable=classes
55 # --disable=W"
56 disable=
57     consider-using-f-string,
58     duplicate-code,
59     invalid-name,
60     missing-docstring,
61     raise-missing-from,
62     super-with-arguments,
63     too-many-instance-attributes,
64     useless-object-inheritance,
66 [REPORTS]
68 # Set the output format. Available formats are text, parseable, colorized, msvs
69 # (visual studio) and html. You can also give a reporter class, eg
70 # mypackage.mymodule.MyReporterClass.
71 output-format=text
73 # Tells whether to display a full report or only the messages
74 reports=no
76 # Python expression which should return a note less than 10 (10 is the highest
77 # note). You have access to the variables errors warning, statement which
78 # respectively contain the number of errors / warnings messages and the total
79 # number of statements analyzed. This is used by the global evaluation report
80 # (RP0004).
81 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
83 # Template used to display messages. This is a python new-style format string
84 # used to format the message information. See doc for all details
85 msg-template={path}:{line}:{column}: {msg} ({symbol})
88 [BASIC]
90 # Good variable names which should always be accepted, separated by a comma
91 good-names=f,i,j,k,ok,v,_
93 # Bad variable names which should always be refused, separated by a comma
94 bad-names=
96 # Colon-delimited sets of names that determine each other's naming style when
97 # the name regexes allow several styles.
98 name-group=
100 # Include a hint for the correct naming format with invalid-name
101 include-naming-hint=yes
103 # Regular expression matching correct function names
104 function-rgx=[a-z_][a-z0-9_]{2,30}$
106 # Regular expression matching correct variable names
107 variable-rgx=[a-z_][a-z0-9_]{2,30}$
109 # Regular expression matching correct constant names
110 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
112 # Regular expression matching correct attribute names
113 attr-rgx=[a-z_][a-z0-9_]{2,30}$
115 # Regular expression matching correct argument names
116 argument-rgx=[a-z_][a-z0-9_]{2,30}$
118 # Regular expression matching correct class attribute names
119 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
121 # Regular expression matching correct inline iteration names
122 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
124 # Regular expression matching correct class names
125 class-rgx=[A-Z_][a-zA-Z0-9]+$
127 # Regular expression matching correct module names
128 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
130 # Regular expression matching correct method names
131 method-rgx=[a-z_][a-z0-9_]{2,30}$
133 # Regular expression which should only match function or class names that do
134 # not require a docstring.
135 no-docstring-rgx=__.*__
137 # Minimum line length for functions/classes that require docstrings, shorter
138 # ones are exempt.
139 docstring-min-length=-1
142 [MISCELLANEOUS]
144 # List of note tags to take in consideration, separated by a comma.
145 notes=FIXME,XXX,TODO
148 [FORMAT]
150 # Maximum number of characters on a single line.
151 max-line-length=88
153 # Regexp for a line that is allowed to be longer than the limit.
154 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
156 # Allow the body of an if to be on the same line as the test if there is no
157 # else.
158 single-line-if-stmt=no
160 # Maximum number of lines in a module
161 max-module-lines=3000
163 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
164 # tab).
165 indent-string='    '
167 # Number of spaces of indent required inside a hanging or continued line.
168 indent-after-paren=4
170 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
171 expected-line-ending-format=LF
174 [TYPECHECK]
176 # Tells whether missing members accessed in mixin class should be ignored. A
177 # mixin class is detected if its name ends with "mixin" (case insensitive).
178 ignore-mixin-members=yes
180 # List of module names for which member attributes should not be checked
181 # (useful for modules/projects where namespaces are manipulated during runtime
182 # and thus existing member attributes cannot be deduced by static analysis
183 ignored-modules=
185 # List of classes names for which member attributes should not be checked
186 # (useful for classes with attributes dynamically set).
187 ignored-classes=
189 # List of members which are set dynamically and missed by pylint inference
190 # system, and so shouldn't trigger E0201 when accessed. Python regular
191 # expressions are accepted.
192 generated-members=
195 [SIMILARITIES]
197 # Minimum lines number of a similarity.
198 min-similarity-lines=4
200 # Ignore comments when computing similarities.
201 ignore-comments=yes
203 # Ignore docstrings when computing similarities.
204 ignore-docstrings=yes
206 # Ignore imports when computing similarities.
207 ignore-imports=no
210 [SPELLING]
212 # Spelling dictionary name. Available dictionaries: none. To make it working
213 # install python-enchant package.
214 spelling-dict=
216 # List of comma separated words that should not be checked.
217 spelling-ignore-words=
219 # A path to a file that contains private dictionary; one word per line.
220 spelling-private-dict-file=
222 # Tells whether to store unknown words to indicated private dictionary in
223 # --spelling-private-dict-file option instead of raising a message.
224 spelling-store-unknown-words=no
227 [LOGGING]
229 # Logging modules to check that the string format arguments are in logging
230 # function parameter format
231 logging-modules=logging
234 [VARIABLES]
236 # Tells whether we should check for unused import in __init__ files.
237 init-import=no
239 # A regular expression matching the name of dummy variables (i.e. expectedly
240 # not used).
241 dummy-variables-rgx=_$|dummy
243 # List of additional names supposed to be defined in builtins. Remember that
244 # you should avoid to define new builtins when possible.
245 additional-builtins=
247 # List of strings which can identify a callback function by name. A callback
248 # name must start or end with one of those strings.
249 callbacks=cb_,_cb
252 [CLASSES]
254 # List of method names used to declare (i.e. assign) instance attributes.
255 defining-attr-methods=__init__,__new__,setUp
257 # List of valid names for the first argument in a class method.
258 valid-classmethod-first-arg=cls
260 # List of valid names for the first argument in a metaclass class method.
261 valid-metaclass-classmethod-first-arg=mcs
263 # List of member names, which should be excluded from the protected access
264 # warning.
265 exclude-protected=_asdict,_fields,_replace,_source,_make
268 [DESIGN]
270 # Maximum number of arguments for function / method
271 max-args=12
273 # Argument names that match this expression will be ignored. Default to name
274 # with leading underscore
275 ignored-argument-names=_.*
277 # Maximum number of locals for function / method body
278 max-locals=32
280 # Maximum number of return / yield for function / method body
281 max-returns=6
283 # Maximum number of branch for function / method body
284 max-branches=24
286 # Maximum number of statements in function / method body
287 max-statements=300
289 # Maximum number of parents for a class (see R0901).
290 max-parents=10
292 # Maximum number of attributes for a class (see R0902).
293 max-attributes=7
295 # Minimum number of public methods for a class (see R0903).
296 min-public-methods=0
298 # Maximum number of public methods for a class (see R0904).
299 max-public-methods=40
302 [IMPORTS]
304 # Deprecated modules which should not be used, separated by a comma
305 deprecated-modules=
307 # Create a graph of every (i.e. internal and external) dependencies in the
308 # given file (report RP0402 must not be disabled)
309 import-graph=
311 # Create a graph of external dependencies in the given file (report RP0402 must
312 # not be disabled)
313 ext-import-graph=
315 # Create a graph of internal dependencies in the given file (report RP0402 must
316 # not be disabled)
317 int-import-graph=
320 [EXCEPTIONS]
322 # Exceptions that will emit a warning when being caught. Defaults to
323 # "Exception"
324 overgeneral-exceptions=Exception