i18n: update translations for v3.4
[git-cola.git] / .pylintrc
blob5f8d97caac1fc313ae7ec4da3d78f6fdfd55e8d2
1 [MASTER]
3 # Specify a configuration file.
4 #rcfile=
6 # Python code to execute, usually for sys.path manipulation such as
7 # pygtk.require().
8 #init-hook=
10 # Add files or directories to the blacklist. They should be base names, not
11 # paths.
12 ignore=.git,sphinxtogithub
14 # Pickle collected data for later comparisons.
15 persistent=yes
17 # List of plugins (as comma separated values of python modules names) to load,
18 # usually to register additional checkers.
19 load-plugins=
21 # Use multiple processes to speed up Pylint.
22 jobs=2
24 # Allow loading of arbitrary C extensions. Extensions are imported into the
25 # active Python interpreter and may run arbitrary code.
26 unsafe-load-any-extension=no
28 # A comma-separated list of package or module names from where C extensions may
29 # be loaded. Extensions are loading into the active Python interpreter and may
30 # run arbitrary code
31 extension-pkg-whitelist=PyQt5,PyQt4,PySide,PySide2
33 # Allow optimization of some AST trees. This will activate a peephole AST
34 # optimizer, which will apply various small optimizations. For instance, it can
35 # be used to obtain the result of joining multiple strings with the addition
36 # operator. Joining a lot of strings can lead to a maximum recursion error in
37 # Pylint and this flag can prevent that. It has one side effect, the resulting
38 # AST will be different than the one from reality.
39 optimize-ast=no
42 [MESSAGES CONTROL]
44 # Only show warnings with the listed confidence levels. Leave empty to show
45 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
46 confidence=
48 # Enable the message, report, category or checker with the given id(s). You can
49 # either give multiple identifier separated by comma (,) or put this option
50 # multiple time. See also the "--disable" option for examples.
51 #enable=
53 # Disable the message, report, category or checker with the given id(s). You
54 # can either give multiple identifiers separated by comma (,) or put this
55 # option multiple times (only on the command line, not in the configuration
56 # file where it should appear only once).You can also use "--disable=all" to
57 # disable everything first and then reenable specific checks. For example, if
58 # you want to run only the similarities checker, you can use "--disable=all
59 # --enable=similarities". If you want to run only the classes checker, but have
60 # no Warning level messages displayed, use"--disable=all --enable=classes
61 # --disable=W"
62 disable=assignment-from-none,bad-continuation,consider-using-dict-comprehension,consider-using-set-comprehension,fixme,wrong-import-position,invalid-name,missing-docstring,no-else-return,too-many-instance-attributes,useless-object-inheritance
64 [REPORTS]
66 # Set the output format. Available formats are text, parseable, colorized, msvs
67 # (visual studio) and html. You can also give a reporter class, eg
68 # mypackage.mymodule.MyReporterClass.
69 output-format=text
71 # Put messages in a separate file for each module / package specified on the
72 # command line instead of printing them on stdout. Reports (if any) will be
73 # written in a file name "pylint_global.[txt|html]".
74 files-output=no
76 # Tells whether to display a full report or only the messages
77 reports=no
79 # Python expression which should return a note less than 10 (10 is the highest
80 # note). You have access to the variables errors warning, statement which
81 # respectively contain the number of errors / warnings messages and the total
82 # number of statements analyzed. This is used by the global evaluation report
83 # (RP0004).
84 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
86 # Template used to display messages. This is a python new-style format string
87 # used to format the message information. See doc for all details
88 msg-template={path}:{line}:{column}: {msg} ({symbol})
91 [BASIC]
93 # List of builtins function names that should not be used, separated by a comma
94 bad-functions=map,filter,input
96 # Good variable names which should always be accepted, separated by a comma
97 good-names=i,j,k,ex,Run,_
99 # Bad variable names which should always be refused, separated by a comma
100 bad-names=foo,bar,baz,toto,tutu,tata
102 # Colon-delimited sets of names that determine each other's naming style when
103 # the name regexes allow several styles.
104 name-group=
106 # Include a hint for the correct naming format with invalid-name
107 include-naming-hint=yes
109 # Regular expression matching correct function names
110 function-rgx=[a-z_][a-z0-9_]{2,30}$
112 # Naming hint for function names
113 function-name-hint=[a-z_][a-z0-9_]{2,30}$
115 # Regular expression matching correct variable names
116 variable-rgx=[a-z_][a-z0-9_]{2,30}$
118 # Naming hint for variable names
119 variable-name-hint=[a-z_][a-z0-9_]{2,30}$
121 # Regular expression matching correct constant names
122 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
124 # Naming hint for constant names
125 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
127 # Regular expression matching correct attribute names
128 attr-rgx=[a-z_][a-z0-9_]{2,30}$
130 # Naming hint for attribute names
131 attr-name-hint=[a-z_][a-z0-9_]{2,30}$
133 # Regular expression matching correct argument names
134 argument-rgx=[a-z_][a-z0-9_]{2,30}$
136 # Naming hint for argument names
137 argument-name-hint=[a-z_][a-z0-9_]{2,30}$
139 # Regular expression matching correct class attribute names
140 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
142 # Naming hint for class attribute names
143 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
145 # Regular expression matching correct inline iteration names
146 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
148 # Naming hint for inline iteration names
149 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
151 # Regular expression matching correct class names
152 class-rgx=[A-Z_][a-zA-Z0-9]+$
154 # Naming hint for class names
155 class-name-hint=[A-Z_][a-zA-Z0-9]+$
157 # Regular expression matching correct module names
158 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
160 # Naming hint for module names
161 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
163 # Regular expression matching correct method names
164 method-rgx=[a-z_][a-z0-9_]{2,30}$
166 # Naming hint for method names
167 method-name-hint=[a-z_][a-z0-9_]{2,30}$
169 # Regular expression which should only match function or class names that do
170 # not require a docstring.
171 no-docstring-rgx=__.*__
173 # Minimum line length for functions/classes that require docstrings, shorter
174 # ones are exempt.
175 docstring-min-length=-1
178 [MISCELLANEOUS]
180 # List of note tags to take in consideration, separated by a comma.
181 notes=FIXME,XXX,TODO
184 [FORMAT]
186 # Maximum number of characters on a single line.
187 max-line-length=80
189 # Regexp for a line that is allowed to be longer than the limit.
190 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
192 # Allow the body of an if to be on the same line as the test if there is no
193 # else.
194 single-line-if-stmt=no
196 # List of optional constructs for which whitespace checking is disabled
197 no-space-check=
199 # Maximum number of lines in a module
200 max-module-lines=3000
202 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
203 # tab).
204 indent-string='    '
206 # Number of spaces of indent required inside a hanging or continued line.
207 indent-after-paren=4
209 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
210 expected-line-ending-format=LF
213 [TYPECHECK]
215 # Tells whether missing members accessed in mixin class should be ignored. A
216 # mixin class is detected if its name ends with "mixin" (case insensitive).
217 ignore-mixin-members=yes
219 # List of module names for which member attributes should not be checked
220 # (useful for modules/projects where namespaces are manipulated during runtime
221 # and thus existing member attributes cannot be deduced by static analysis
222 ignored-modules=
224 # List of classes names for which member attributes should not be checked
225 # (useful for classes with attributes dynamically set).
226 ignored-classes=
228 # List of members which are set dynamically and missed by pylint inference
229 # system, and so shouldn't trigger E0201 when accessed. Python regular
230 # expressions are accepted.
231 generated-members=
234 [SIMILARITIES]
236 # Minimum lines number of a similarity.
237 min-similarity-lines=4
239 # Ignore comments when computing similarities.
240 ignore-comments=yes
242 # Ignore docstrings when computing similarities.
243 ignore-docstrings=yes
245 # Ignore imports when computing similarities.
246 ignore-imports=no
249 [SPELLING]
251 # Spelling dictionary name. Available dictionaries: none. To make it working
252 # install python-enchant package.
253 spelling-dict=
255 # List of comma separated words that should not be checked.
256 spelling-ignore-words=
258 # A path to a file that contains private dictionary; one word per line.
259 spelling-private-dict-file=
261 # Tells whether to store unknown words to indicated private dictionary in
262 # --spelling-private-dict-file option instead of raising a message.
263 spelling-store-unknown-words=no
266 [LOGGING]
268 # Logging modules to check that the string format arguments are in logging
269 # function parameter format
270 logging-modules=logging
273 [VARIABLES]
275 # Tells whether we should check for unused import in __init__ files.
276 init-import=no
278 # A regular expression matching the name of dummy variables (i.e. expectedly
279 # not used).
280 dummy-variables-rgx=_$|dummy
282 # List of additional names supposed to be defined in builtins. Remember that
283 # you should avoid to define new builtins when possible.
284 additional-builtins=
286 # List of strings which can identify a callback function by name. A callback
287 # name must start or end with one of those strings.
288 callbacks=cb_,_cb
291 [CLASSES]
293 # List of method names used to declare (i.e. assign) instance attributes.
294 defining-attr-methods=__init__,__new__,setUp
296 # List of valid names for the first argument in a class method.
297 valid-classmethod-first-arg=cls
299 # List of valid names for the first argument in a metaclass class method.
300 valid-metaclass-classmethod-first-arg=mcs
302 # List of member names, which should be excluded from the protected access
303 # warning.
304 exclude-protected=_asdict,_fields,_replace,_source,_make
307 [DESIGN]
309 # Maximum number of arguments for function / method
310 max-args=12
312 # Argument names that match this expression will be ignored. Default to name
313 # with leading underscore
314 ignored-argument-names=_.*
316 # Maximum number of locals for function / method body
317 max-locals=32
319 # Maximum number of return / yield for function / method body
320 max-returns=6
322 # Maximum number of branch for function / method body
323 max-branches=24
325 # Maximum number of statements in function / method body
326 max-statements=300
328 # Maximum number of parents for a class (see R0901).
329 max-parents=10
331 # Maximum number of attributes for a class (see R0902).
332 max-attributes=7
334 # Minimum number of public methods for a class (see R0903).
335 min-public-methods=0
337 # Maximum number of public methods for a class (see R0904).
338 max-public-methods=40
341 [IMPORTS]
343 # Deprecated modules which should not be used, separated by a comma
344 deprecated-modules=
346 # Create a graph of every (i.e. internal and external) dependencies in the
347 # given file (report RP0402 must not be disabled)
348 import-graph=
350 # Create a graph of external dependencies in the given file (report RP0402 must
351 # not be disabled)
352 ext-import-graph=
354 # Create a graph of internal dependencies in the given file (report RP0402 must
355 # not be disabled)
356 int-import-graph=
359 [EXCEPTIONS]
361 # Exceptions that will emit a warning when being caught. Defaults to
362 # "Exception"
363 overgeneral-exceptions=Exception