Mercurial > repos > petr-novak > repeatrxplorer
comparison pylintrc @ 0:1d1b9e1b2e2f draft
Uploaded
author | petr-novak |
---|---|
date | Thu, 19 Dec 2019 10:24:45 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1d1b9e1b2e2f |
---|---|
1 [MASTER] | |
2 | |
3 # Specify a configuration file. | |
4 #rcfile= | |
5 | |
6 # Python code to execute, usually for sys.path manipulation such as | |
7 # pygtk.require(). | |
8 | |
9 init-hook='import sys; sys.path.append(".")' | |
10 | |
11 # Add files or directories to the blacklist. They should be base names, not | |
12 # paths. | |
13 ignore=CVS | |
14 | |
15 # Pickle collected data for later comparisons. | |
16 persistent=yes | |
17 | |
18 # List of plugins (as comma separated values of python modules names) to load, | |
19 # usually to register additional checkers. | |
20 load-plugins= | |
21 | |
22 # Use multiple processes to speed up Pylint. | |
23 jobs=1 | |
24 | |
25 # Allow loading of arbitrary C extensions. Extensions are imported into the | |
26 # active Python interpreter and may run arbitrary code. | |
27 unsafe-load-any-extension=no | |
28 | |
29 # A comma-separated list of package or module names from where C extensions may | |
30 # be loaded. Extensions are loading into the active Python interpreter and may | |
31 # run arbitrary code | |
32 extension-pkg-whitelist= | |
33 | |
34 # Allow optimization of some AST trees. This will activate a peephole AST | |
35 # optimizer, which will apply various small optimizations. For instance, it can | |
36 # be used to obtain the result of joining multiple strings with the addition | |
37 # operator. Joining a lot of strings can lead to a maximum recursion error in | |
38 # Pylint and this flag can prevent that. It has one side effect, the resulting | |
39 # AST will be different than the one from reality. | |
40 optimize-ast=no | |
41 | |
42 | |
43 [MESSAGES CONTROL] | |
44 | |
45 # Only show warnings with the listed confidence levels. Leave empty to show | |
46 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED | |
47 confidence= | |
48 | |
49 # Enable the message, report, category or checker with the given id(s). You can | |
50 # either give multiple identifier separated by comma (,) or put this option | |
51 # multiple time (only on the command line, not in the configuration file where | |
52 # it should appear only once). See also the "--disable" option for examples. | |
53 #enable= | |
54 | |
55 # Disable the message, report, category or checker with the given id(s). You | |
56 # can either give multiple identifiers separated by comma (,) or put this | |
57 # option multiple times (only on the command line, not in the configuration | |
58 # file where it should appear only once).You can also use "--disable=all" to | |
59 # disable everything first and then reenable specific checks. For example, if | |
60 # you want to run only the similarities checker, you can use "--disable=all | |
61 # --enable=similarities". If you want to run only the classes checker, but have | |
62 # no Warning level messages displayed, use"--disable=all --enable=classes | |
63 # --disable=W" | |
64 disable=parameter-unpacking,suppressed-message,intern-builtin,hex-method,next-method-called,useless-suppression,no-absolute-import,execfile-builtin,metaclass-assignment,setslice-method,unichr-builtin,round-builtin,getslice-method,coerce-method,apply-builtin,print-statement,old-ne-operator,cmp-method,long-builtin,cmp-builtin,reload-builtin,filter-builtin-not-iterating,standarderror-builtin,file-builtin,buffer-builtin,indexing-exception,raising-string,old-octal-literal,range-builtin-not-iterating,oct-method,old-raise-syntax,xrange-builtin,zip-builtin-not-iterating,reduce-builtin,unicode-builtin,raw_input-builtin,coerce-builtin,dict-iter-method,basestring-builtin,long-suffix,delslice-method,dict-view-method,old-division,input-builtin,unpacking-in-except,map-builtin-not-iterating,nonzero-method,import-star-module-level,using-cmp-argument,backtick,W1202 | |
65 | |
66 | |
67 [REPORTS] | |
68 | |
69 # Set the output format. Available formats are text, parseable, colorized, msvs | |
70 # (visual studio) and html. You can also give a reporter class, eg | |
71 # mypackage.mymodule.MyReporterClass. | |
72 output-format=text | |
73 | |
74 # Put messages in a separate file for each module / package specified on the | |
75 # command line instead of printing them on stdout. Reports (if any) will be | |
76 # written in a file name "pylint_global.[txt|html]". | |
77 files-output=no | |
78 | |
79 # Tells whether to display a full report or only the messages | |
80 reports=yes | |
81 | |
82 # Python expression which should return a note less than 10 (10 is the highest | |
83 # note). You have access to the variables errors warning, statement which | |
84 # respectively contain the number of errors / warnings messages and the total | |
85 # number of statements analyzed. This is used by the global evaluation report | |
86 # (RP0004). | |
87 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) | |
88 | |
89 # Template used to display messages. This is a python new-style format string | |
90 # used to format the message information. See doc for all details | |
91 #msg-template= | |
92 | |
93 | |
94 [MISCELLANEOUS] | |
95 | |
96 # List of note tags to take in consideration, separated by a comma. | |
97 notes=FIXME,XXX,TODO | |
98 | |
99 | |
100 [BASIC] | |
101 | |
102 # List of builtins function names that should not be used, separated by a comma | |
103 bad-functions=map,filter | |
104 | |
105 # Good variable names which should always be accepted, separated by a comma | |
106 good-names=a,b,c,d,p,f,n,s,i,j,k,ex,Run,_ | |
107 | |
108 # Bad variable names which should always be refused, separated by a comma | |
109 bad-names=foo,bar,baz,toto,tutu,tata | |
110 | |
111 # Colon-delimited sets of names that determine each other's naming style when | |
112 # the name regexes allow several styles. | |
113 name-group= | |
114 | |
115 # Include a hint for the correct naming format with invalid-name | |
116 include-naming-hint=no | |
117 | |
118 # Regular expression matching correct method names | |
119 method-rgx=[a-z_][a-z0-9_]{2,30}$ | |
120 | |
121 # Naming hint for method names | |
122 method-name-hint=[a-z_][a-z0-9_]{2,30}$ | |
123 | |
124 # Regular expression matching correct variable names | |
125 variable-rgx=[a-z_][a-z0-9_]{1,30}$ | |
126 | |
127 # Naming hint for variable names | |
128 variable-name-hint=[a-z_][a-z0-9_]{2,30}$ | |
129 | |
130 # Regular expression matching correct constant names | |
131 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ | |
132 | |
133 # Naming hint for constant names | |
134 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ | |
135 | |
136 # Regular expression matching correct class names | |
137 class-rgx=[A-Z_][a-zA-Z0-9]+$ | |
138 | |
139 # Naming hint for class names | |
140 class-name-hint=[A-Z_][a-zA-Z0-9]+$ | |
141 | |
142 # Regular expression matching correct argument names | |
143 argument-rgx=[a-z_][a-z0-9_]{2,30}$ | |
144 | |
145 # Naming hint for argument names | |
146 argument-name-hint=[a-z_][a-z0-9_]{2,30}$ | |
147 | |
148 # Regular expression matching correct inline iteration names | |
149 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ | |
150 | |
151 # Naming hint for inline iteration names | |
152 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ | |
153 | |
154 # Regular expression matching correct module names | |
155 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ | |
156 | |
157 # Naming hint for module names | |
158 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ | |
159 | |
160 # Regular expression matching correct class attribute names | |
161 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ | |
162 | |
163 # Naming hint for class attribute names | |
164 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ | |
165 | |
166 # Regular expression matching correct function names | |
167 function-rgx=[a-z_][a-z0-9_]{2,30}$ | |
168 | |
169 # Naming hint for function names | |
170 function-name-hint=[a-z_][a-z0-9_]{2,30}$ | |
171 | |
172 # Regular expression matching correct attribute names | |
173 attr-rgx=[a-z_][a-z0-9_]{2,30}$ | |
174 | |
175 # Naming hint for attribute names | |
176 attr-name-hint=[a-z_][a-z0-9_]{2,30}$ | |
177 | |
178 # Regular expression which should only match function or class names that do | |
179 # not require a docstring. | |
180 no-docstring-rgx=^_ | |
181 | |
182 # Minimum line length for functions/classes that require docstrings, shorter | |
183 # ones are exempt. | |
184 docstring-min-length=-1 | |
185 | |
186 | |
187 [ELIF] | |
188 | |
189 # Maximum number of nested blocks for function / method body | |
190 max-nested-blocks=5 | |
191 | |
192 | |
193 [SPELLING] | |
194 | |
195 # Spelling dictionary name. Available dictionaries: none. To make it working | |
196 # install python-enchant package. | |
197 spelling-dict= | |
198 | |
199 # List of comma separated words that should not be checked. | |
200 spelling-ignore-words= | |
201 | |
202 # A path to a file that contains private dictionary; one word per line. | |
203 spelling-private-dict-file= | |
204 | |
205 # Tells whether to store unknown words to indicated private dictionary in | |
206 # --spelling-private-dict-file option instead of raising a message. | |
207 spelling-store-unknown-words=no | |
208 | |
209 | |
210 [TYPECHECK] | |
211 | |
212 # Tells whether missing members accessed in mixin class should be ignored. A | |
213 # mixin class is detected if its name ends with "mixin" (case insensitive). | |
214 ignore-mixin-members=yes | |
215 | |
216 # List of module names for which member attributes should not be checked | |
217 # (useful for modules/projects where namespaces are manipulated during runtime | |
218 # and thus existing member attributes cannot be deduced by static analysis. It | |
219 # supports qualified module names, as well as Unix pattern matching. | |
220 ignored-modules= | |
221 | |
222 # List of classes names for which member attributes should not be checked | |
223 # (useful for classes with attributes dynamically set). This supports can work | |
224 # with qualified names. | |
225 ignored-classes=DataFiles,R | |
226 | |
227 # List of members which are set dynamically and missed by pylint inference | |
228 # system, and so shouldn't trigger E1101 when accessed. Python regular | |
229 # expressions are accepted. | |
230 generated-members= | |
231 | |
232 | |
233 [FORMAT] | |
234 | |
235 # Maximum number of characters on a single line. | |
236 max-line-length=100 | |
237 | |
238 # Regexp for a line that is allowed to be longer than the limit. | |
239 ignore-long-lines=^\s*(# )?<?https?://\S+>?$ | |
240 | |
241 # Allow the body of an if to be on the same line as the test if there is no | |
242 # else. | |
243 single-line-if-stmt=no | |
244 | |
245 # List of optional constructs for which whitespace checking is disabled. `dict- | |
246 # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. | |
247 # `trailing-comma` allows a space between comma and closing bracket: (a, ). | |
248 # `empty-line` allows space-only lines. | |
249 no-space-check=trailing-comma,dict-separator | |
250 | |
251 # Maximum number of lines in a module | |
252 max-module-lines=1000 | |
253 | |
254 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 | |
255 # tab). | |
256 indent-string=' ' | |
257 | |
258 # Number of spaces of indent required inside a hanging or continued line. | |
259 indent-after-paren=4 | |
260 | |
261 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF. | |
262 expected-line-ending-format= | |
263 | |
264 | |
265 [LOGGING] | |
266 | |
267 # Logging modules to check that the string format arguments are in logging | |
268 # function parameter format | |
269 logging-modules=logging | |
270 | |
271 | |
272 [SIMILARITIES] | |
273 | |
274 # Minimum lines number of a similarity. | |
275 min-similarity-lines=4 | |
276 | |
277 # Ignore comments when computing similarities. | |
278 ignore-comments=yes | |
279 | |
280 # Ignore docstrings when computing similarities. | |
281 ignore-docstrings=yes | |
282 | |
283 # Ignore imports when computing similarities. | |
284 ignore-imports=no | |
285 | |
286 | |
287 [VARIABLES] | |
288 | |
289 # Tells whether we should check for unused import in __init__ files. | |
290 init-import=no | |
291 | |
292 # A regular expression matching the name of dummy variables (i.e. expectedly | |
293 # not used). | |
294 dummy-variables-rgx=_$|dummy | |
295 | |
296 # List of additional names supposed to be defined in builtins. Remember that | |
297 # you should avoid to define new builtins when possible. | |
298 additional-builtins= | |
299 | |
300 # List of strings which can identify a callback function by name. A callback | |
301 # name must start or end with one of those strings. | |
302 callbacks=cb_,_cb | |
303 | |
304 | |
305 [IMPORTS] | |
306 | |
307 # Deprecated modules which should not be used, separated by a comma | |
308 deprecated-modules=optparse | |
309 | |
310 # Create a graph of every (i.e. internal and external) dependencies in the | |
311 # given file (report RP0402 must not be disabled) | |
312 import-graph= | |
313 | |
314 # Create a graph of external dependencies in the given file (report RP0402 must | |
315 # not be disabled) | |
316 ext-import-graph= | |
317 | |
318 # Create a graph of internal dependencies in the given file (report RP0402 must | |
319 # not be disabled) | |
320 int-import-graph= | |
321 | |
322 | |
323 [DESIGN] | |
324 | |
325 # Maximum number of arguments for function / method | |
326 max-args=20 | |
327 | |
328 # Argument names that match this expression will be ignored. Default to name | |
329 # with leading underscore | |
330 ignored-argument-names=_.* | |
331 | |
332 # Maximum number of locals for function / method body | |
333 max-locals=20 | |
334 | |
335 # Maximum number of return / yield for function / method body | |
336 max-returns=6 | |
337 | |
338 # Maximum number of branch for function / method body | |
339 max-branches=12 | |
340 | |
341 # Maximum number of statements in function / method body | |
342 max-statements=50 | |
343 | |
344 # Maximum number of parents for a class (see R0901). | |
345 max-parents=7 | |
346 | |
347 # Maximum number of attributes for a class (see R0902). | |
348 max-attributes=30 | |
349 | |
350 # Minimum number of public methods for a class (see R0903). | |
351 min-public-methods=0 | |
352 | |
353 # Maximum number of public methods for a class (see R0904). | |
354 max-public-methods=20 | |
355 | |
356 # Maximum number of boolean expressions in a if statement | |
357 max-bool-expr=5 | |
358 | |
359 | |
360 [CLASSES] | |
361 | |
362 # List of method names used to declare (i.e. assign) instance attributes. | |
363 defining-attr-methods=__init__,__new__,setUp | |
364 | |
365 # List of valid names for the first argument in a class method. | |
366 valid-classmethod-first-arg=cls | |
367 | |
368 # List of valid names for the first argument in a metaclass class method. | |
369 valid-metaclass-classmethod-first-arg=mcs | |
370 | |
371 # List of member names, which should be excluded from the protected access | |
372 # warning. | |
373 exclude-protected=_asdict,_fields,_replace,_source,_make | |
374 | |
375 | |
376 [EXCEPTIONS] | |
377 | |
378 # Exceptions that will emit a warning when being caught. Defaults to | |
379 # "Exception" | |
380 overgeneral-exceptions=Exception |