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