Debian Codegraph @

scripts/pylintrc

raw
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 #init-hook=
9
10 # Profiled execution.
11 profile=no
12
13 # Pickle collected data for later comparisons.
14 persistent=yes
15
16 # List of plugins (as comma separated values of python modules names) to load,
17 # usually to register additional checkers.
18 load-plugins=
19
20
21 [MESSAGES CONTROL]
22
23 # Enable the message, report, category or checker with the given id(s). You can
24 # either give multiple identifier separated by comma (,) or put this option
25 # multiple time. See also the "--disable" option for examples.
26 #enable=
27
28 # Disable the message, report, category or checker with the given id(s). You
29 # can either give multiple identifiers separated by comma (,) or put this
30 # option multiple times (only on the command line, not in the configuration
31 # file where it should appear only once).You can also use "--disable=all" to
32 # disable everything first and then re-enable specific checks. For example, if
33 # you want to run only the similarities checker, you can use "--disable=all
34 # --enable=similarities". If you want to run only the classes checker, but have
35 # no Warning level messages displayed, use"--disable=all --enable=classes
36 # --disable=W"
37 #disable=
38
39
40 [REPORTS]
41
42 # Set the output format. Available formats are text, parseable, colorized, msvs
43 # (visual studio) and html. You can also give a reporter class, eg
44 # mypackage.mymodule.MyReporterClass.
45 output-format=text
46
47 # Put messages in a separate file for each module / package specified on the
48 # command line instead of printing them on stdout. Reports (if any) will be
49 # written in a file name "pylint_global.[txt|html]".
50 files-output=no
51
52 # Tells whether to display a full report or only the messages
53 reports=no
54
55 # Python expression which should return a note less than 10 (10 is the highest
56 # note). You have access to the variables errors warning, statement which
57 # respectively contain the number of errors / warnings messages and the total
58 # number of statements analyzed. This is used by the global evaluation report
59 # (RP0004).
60 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
61
62 # Add a comment according to your evaluation note. This is used by the global
63 # evaluation report (RP0004).
64 comment=no
65
66 # Template used to display messages. This is a python new-style format string
67 # used to format the massage information. See doc for all details
68 #msg-template=
69
70
71 [MISCELLANEOUS]
72
73 # List of note tags to take in consideration, separated by a comma.
74 notes=FIXME,XXX,TODO
75
76
77 [SIMILARITIES]
78
79 # Minimum lines number of a similarity.
80 min-similarity-lines=4
81
82 # Ignore comments when computing similarities.
83 ignore-comments=yes
84
85 # Ignore docstrings when computing similarities.
86 ignore-docstrings=yes
87
88 # Ignore imports when computing similarities.
89 ignore-imports=no
90
91
92 [BASIC]
93
94 # Required attributes for module, separated by a comma
95 required-attributes=
96
97 # List of builtins function names that should not be used, separated by a comma
98 bad-functions=map,filter,apply,input
99
100 # Regular expression which should only match correct module names
101 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
102
103 # Regular expression which should only match correct module level names
104 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
105
106 # Regular expression which should only match correct class names
107 class-rgx=[A-Z_][a-zA-Z0-9]+$
108
109 # Regular expression which should only match correct function names
110 function-rgx=[a-z_][a-z0-9_]{2,30}$
111
112 # Regular expression which should only match correct method names
113 method-rgx=[a-z_][a-z0-9_]{2,30}$
114
115 # Regular expression which should only match correct instance attribute names
116 attr-rgx=[a-z_][a-z0-9_]{2,30}$
117
118 # Regular expression which should only match correct argument names
119 argument-rgx=[a-z_][a-z0-9_]{2,30}$
120
121 # Regular expression which should only match correct variable names
122 variable-rgx=[a-z_][a-z0-9_]{2,30}$
123
124 # Regular expression which should only match correct attribute names in class
125 # bodies
126 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
127
128 # Regular expression which should only match correct list comprehension /
129 # generator expression variable names
130 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
131
132 # Good variable names which should always be accepted, separated by a comma
133 # f is a useful name for a file descriptor
134 good-names=f,i,j,k,ex,Run,_
135
136 # Bad variable names which should always be refused, separated by a comma
137 bad-names=foo,bar,baz,toto,tutu,tata
138
139 # Regular expression which should only match function or class names that do
140 # not require a docstring.
141 no-docstring-rgx=__.*__
142
143 # Minimum line length for functions/classes that require docstrings, shorter
144 # ones are exempt.
145 docstring-min-length=-1
146
147
148 [VARIABLES]
149
150 # Tells whether we should check for unused import in __init__ files.
151 init-import=no
152
153 # A regular expression matching the beginning of the name of dummy variables
154 # (i.e. not used).
155 dummy-variables-rgx=_$|dummy
156
157 # List of additional names supposed to be defined in builtins. Remember that
158 # you should avoid to define new builtins when possible.
159 additional-builtins=
160
161
162 [FORMAT]
163
164 # Maximum number of characters on a single line.
165 max-line-length=79
166
167 # Regexp for a line that is allowed to be longer than the limit.
168 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
169
170 # Maximum number of lines in a module
171 max-module-lines=1000
172
173 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
174 # tab).
175 indent-string=' '
176
177
178 [TYPECHECK]
179
180 # Tells whether missing members accessed in mixin class should be ignored. A
181 # mixin class is detected if its name ends with "mixin" (case insensitive).
182 ignore-mixin-members=yes
183
184 # List of classes names for which member attributes should not be checked
185 # (useful for classes with attributes dynamically set).
186 ignored-classes=SQLObject
187
188 # When zope mode is activated, add a predefined set of Zope acquired attributes
189 # to generated-members.
190 zope=no
191
192 # List of members which are set dynamically and missed by pylint inference
193 # system, and so shouldn't trigger E0201 when accessed. Python regular
194 # expressions are accepted.
195 generated-members=REQUEST,acl_users,aq_parent
196
197
198 [CLASSES]
199
200 # List of interface methods to ignore, separated by a comma. This is used for
201 # instance to not check methods defines in Zope's Interface base class.
202 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
203
204 # List of method names used to declare (i.e. assign) instance attributes.
205 defining-attr-methods=__init__,__new__,setUp
206
207 # List of valid names for the first argument in a class method.
208 valid-classmethod-first-arg=cls
209
210 # List of valid names for the first argument in a metaclass class method.
211 valid-metaclass-classmethod-first-arg=mcs
212
213
214 [IMPORTS]
215
216 # Deprecated modules which should not be used, separated by a comma
217 deprecated-modules=regsub,TERMIOS,Bastion,rexec
218
219 # Create a graph of every (i.e. internal and external) dependencies in the
220 # given file (report RP0402 must not be disabled)
221 import-graph=
222
223 # Create a graph of external dependencies in the given file (report RP0402 must
224 # not be disabled)
225 ext-import-graph=
226
227 # Create a graph of internal dependencies in the given file (report RP0402 must
228 # not be disabled)
229 int-import-graph=
230
231
232 [DESIGN]
233
234 # Maximum number of arguments for function / method
235 max-args=5
236
237 # Argument names that match this expression will be ignored. Default to name
238 # with leading underscore
239 ignored-argument-names=_.*
240
241 # Maximum number of locals for function / method body
242 max-locals=15
243
244 # Maximum number of return / yield for function / method body
245 max-returns=6
246
247 # Maximum number of branch for function / method body
248 max-branches=12
249
250 # Maximum number of statements in function / method body
251 max-statements=50
252
253 # Maximum number of parents for a class (see R0901).
254 max-parents=7
255
256 # Maximum number of attributes for a class (see R0902).
257 max-attributes=7
258
259 # Minimum number of public methods for a class (see R0903).
260 min-public-methods=2
261
262 # Maximum number of public methods for a class (see R0904).
263 max-public-methods=20
264
265
266 [EXCEPTIONS]
267
268 # Exceptions that will emit a warning when being caught. Defaults to
269 # "Exception"
270 overgeneral-exceptions=Exception