Debian Codegraph @

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