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