3 # Specify a configuration file.
6 # Python code to execute, usually for sys.path manipulation such as
13 # Add files or directories to the blacklist. They should be base names, not
17 # Pickle collected data for later comparisons.
20 # List of plugins (as comma separated values of python modules names) to load,
21 # usually to register additional checkers.
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
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).
37 # C0103: Invalid name ""
38 # C0111: Missing docstring
39 # C0302: Too many lines in module (N)
40 # I0010: Unable to consider inline option ''
41 # I0011: Locally disabling WNNNN
43 # R0801: Similar lines in N files
44 # R0901: Too many ancestors (8/7)
45 # R0902: Too many instance attributes (N/7)
46 # R0903: Too few public methods (N/2)
47 # R0904: Too many public methods (N/20)
48 # R0911: Too many return statements (N/6)
49 # R0912: Too many branches (N/12)
50 # R0913: Too many arguments (N/5)
51 # R0914: Too many local variables (N/15)
52 # R0915: Too many statements (N/50)
53 # R0921: Abstract class not referenced
54 # R0922: Abstract class is only referenced 1 times
55 # W0122: Use of the exec statement
56 # W0141: Used builtin function ''
57 # W0142: Used * or ** magic
58 # W0402: Uses of a deprecated module 'string'
59 # W0404: 41: Reimport 'XX' (imported line NN)
61 # W0603: Using the global statement
62 # W0703: Catch "Exception"
63 # W1201: Specify string format arguments as logging function parameters
65 # These should get enabled, but the codebase has too many violations currently.
67 # anomalous-backslash-in-string
78 # missing-final-newline
87 # too-many-function-args
89 # unnecessary-semicolon
90 # unpacking-non-sequence
92 # useless-else-on-loop
93 disable=C0103,C0111,C0302,I0010,I0011,R0801,R0901,R0902,R0903,R0904,R0911,R0912,R0913,R0914,R0915,R0921,R0922,W0122,W0141,W0142,W0402,W0404,W0511,W0603,W0703,W1201,bad-continuation,anomalous-backslash-in-string,bad-context-manager,bad-indentation,bad-str-strip-call,bad-whitespace,cell-var-from-loop,deprecated-lambda,eval-used,function-redefined,import-error,locally-enabled,missing-final-newline,no-init,no-name-in-module,no-self-use,not-callable,old-style-class,protected-access,superfluous-parens,super-on-old-class,too-many-function-args,trailing-whitespace,unnecessary-semicolon,unpacking-non-sequence,unused-import,useless-else-on-loop
98 # Set the output format. Available formats are text, parseable, colorized, msvs
99 # (visual studio) and html
102 # Put messages in a separate file for each module / package specified on the
103 # command line instead of printing them on stdout. Reports (if any) will be
104 # written in a file name "pylint_global.[txt|html]".
107 # Tells whether to display a full report or only the messages
111 # Python expression which should return a note less than 10 (10 is the highest
112 # note). You have access to the variables errors warning, statement which
113 # respectively contain the number of errors / warnings messages and the total
114 # number of statements analyzed. This is used by the global evaluation report
116 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
118 # Add a comment according to your evaluation note. This is used by the global
119 # evaluation report (RP0004).
125 # Tells whether we should check for unused import in __init__ files.
128 # A regular expression matching the beginning of the name of dummy variables
130 dummy-variables-rgx=_|dummy
132 # List of additional names supposed to be defined in builtins. Remember that
133 # you should avoid to define new builtins when possible.
136 # List of modules that can redefine builtins. (For python 2/3 compatibility)
137 redefining-builtins-modules=builtins
142 # Tells whether missing members accessed in mixin class should be ignored. A
143 # mixin class is detected if its name ends with "mixin" (case insensitive).
144 ignore-mixin-members=yes
146 # List of classes names for which member attributes should not be checked
147 # (useful for classes with attributes dynamically set).
148 ignored-classes=SQLObject,twisted.internet.reactor,hashlib,google.appengine.api.memcache
150 # When zope mode is activated, add a predefined set of Zope acquired attributes
151 # to generated-members.
154 # List of members which are set dynamically and missed by pylint inference
155 # system, and so shouldn't trigger E0201 when accessed. Python regular
156 # expressions are accepted.
157 generated-members=REQUEST,acl_users,aq_parent,multiprocessing.managers.SyncManager
162 # List of note tags to take in consideration, separated by a comma.
168 # Minimum lines number of a similarity.
169 min-similarity-lines=4
171 # Ignore comments when computing similarities.
174 # Ignore docstrings when computing similarities.
175 ignore-docstrings=yes
180 # Maximum number of characters on a single line.
183 # Maximum number of lines in a module
184 max-module-lines=1000
186 # String used as indentation unit
192 # Required attributes for module, separated by a comma
193 #required-attributes=
195 # List of builtins function names that should not be used, separated by a comma
196 bad-functions=map,filter,apply,input
198 # Regular expression which should only match correct module names
199 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
201 # Regular expression which should only match correct module level names
202 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
204 # Regular expression which should only match correct class names
205 class-rgx=[A-Z_][a-zA-Z0-9]+$
207 # Regular expression which should only match correct function names
208 function-rgx=[a-z_][a-z0-9_]{2,30}$
210 # Regular expression which should only match correct method names
211 method-rgx=[a-z_][a-z0-9_]{2,30}$
213 # Regular expression which should only match correct instance attribute names
214 attr-rgx=[a-z_][a-z0-9_]{2,30}$
216 # Regular expression which should only match correct argument names
217 argument-rgx=[a-z_][a-z0-9_]{2,30}$
219 # Regular expression which should only match correct variable names
220 variable-rgx=[a-z_][a-z0-9_]{2,30}$
222 # Regular expression which should only match correct list comprehension /
223 # generator expression variable names
224 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
226 # Good variable names which should always be accepted, separated by a comma
227 good-names=i,j,k,ex,Run,_
229 # Bad variable names which should always be refused, separated by a comma
230 bad-names=foo,bar,baz,toto,tutu,tata
232 # Regular expression which should only match functions or classes name which do
233 # not require a docstring
234 no-docstring-rgx=__.*__
239 # Maximum number of arguments for function / method
242 # Argument names that match this expression will be ignored. Default to name
243 # with leading underscore
244 ignored-argument-names=_.*
246 # Maximum number of locals for function / method body
249 # Maximum number of return / yield for function / method body
252 # Maximum number of branch for function / method body
255 # Maximum number of statements in function / method body
258 # Maximum number of parents for a class (see R0901).
261 # Maximum number of attributes for a class (see R0902).
264 # Minimum number of public methods for a class (see R0903).
267 # Maximum number of public methods for a class (see R0904).
268 max-public-methods=20
273 # List of interface methods to ignore, separated by a comma. This is used for
274 # instance to not check methods defines in Zope's Interface base class.
275 #ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
277 # List of method names used to declare (i.e. assign) instance attributes.
278 defining-attr-methods=__init__,__new__,setUp
280 # List of valid names for the first argument in a class method.
281 valid-classmethod-first-arg=cls
286 # Deprecated modules which should not be used, separated by a comma
287 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
289 # Create a graph of every (i.e. internal and external) dependencies in the
290 # given file (report RP0402 must not be disabled)
293 # Create a graph of external dependencies in the given file (report RP0402 must
297 # Create a graph of internal dependencies in the given file (report RP0402 must
304 # Exceptions that will emit a warning when being caught. Defaults to
306 overgeneral-exceptions=Exception