source: sasview/build_tools/pylint.rc @ ded2ce3

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since ded2ce3 was 2df0b74, checked in by Mathieu Doucet <doucetm@…>, 10 years ago

pylint fixes

  • Property mode set to 100644
File size: 11.6 KB
RevLine 
[aba5876]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
[d176f9c]13# Add files or directories to the blacklist. They should be base names, not
14# paths.
[aba5876]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
[d176f9c]24# Use multiple processes to speed up Pylint.
25jobs=4
[aba5876]26
[d176f9c]27# Allow loading of arbitrary C extensions. Extensions are imported into the
28# active Python interpreter and may run arbitrary code.
29unsafe-load-any-extension=no
[aba5876]30
[d176f9c]31# A comma-separated list of package or module names from where C extensions may
32# be loaded. Extensions are loading into the active Python interpreter and may
33# run arbitrary code
34extension-pkg-whitelist=
[aba5876]35
[d176f9c]36[MESSAGES CONTROL]
[aba5876]37
[d176f9c]38# Only show warnings with the listed confidence levels. Leave empty to show
39# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
40confidence=
41
42# Enable the message, report, category or checker with the given id(s). You can
43# either give multiple identifier separated by comma (,) or put this option
44# multiple time. See also the "--disable" option for examples.
[1128bd31]45enable=W0704
[d176f9c]46
47# Disable the message, report, category or checker with the given id(s). You
48# can either give multiple identifiers separated by comma (,) or put this
49# option multiple times (only on the command line, not in the configuration
50# file where it should appear only once).You can also use "--disable=all" to
51# disable everything first and then reenable specific checks. For example, if
52# you want to run only the similarities checker, you can use "--disable=all
53# --enable=similarities". If you want to run only the classes checker, but have
54# no Warning level messages displayed, use"--disable=all --enable=classes
55# --disable=W"
[1128bd31]56# disable=W0702,E1608,W1627,E1601,E1603,E1602,E1605,E1604,E1607,E1606,W1621,W1620,W1623,W1622,W1625,W1624,W1609,W1626,W1607,W1606,W1605,W1604,W1603,W1602,W1601,I0021,I0020,W1618,W1619,W1630,W1631,W1610,W1611,W1612,W1613,W1614,W1615,W1616,W1617,W1632,W1633,W0704,W1628,W1629,W1608
[aba5876]57
58# Disable the message(s) with the given id(s).
[dca6188]59disable=W0702,W0613,W0703,W0142,R0201,W1201,R0913
[aba5876]60
61[REPORTS]
62
63# Set the output format. Available formats are text, parseable, colorized, msvs
[d176f9c]64# (visual studio) and html. You can also give a reporter class, eg
65# mypackage.mymodule.MyReporterClass.
[aba5876]66output-format=text
67
68# Put messages in a separate file for each module / package specified on the
69# command line instead of printing them on stdout. Reports (if any) will be
70# written in a file name "pylint_global.[txt|html]".
71files-output=no
72
73# Tells whether to display a full report or only the messages
74reports=yes
75
76# Python expression which should return a note less than 10 (10 is the highest
77# note). You have access to the variables errors warning, statement which
78# respectively contain the number of errors / warnings messages and the total
79# number of statements analyzed. This is used by the global evaluation report
[d176f9c]80# (RP0004).
[aba5876]81evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
82
83# Add a comment according to your evaluation note. This is used by the global
[d176f9c]84# evaluation report (RP0004).
[aba5876]85comment=no
86
[d176f9c]87# Template used to display messages. This is a python new-style format string
88# used to format the message information. See doc for all details
89#msg-template=
[aba5876]90
91[BASIC]
92
93# Required attributes for module, separated by a comma
94required-attributes=
95
[d176f9c]96# List of builtins function names that should not be used, separated by a comma
97bad-functions=map,filter,input
[aba5876]98
[d176f9c]99# Good variable names which should always be accepted, separated by a comma
[2df0b74]100good-names=i,j,k,ex,Run,_,x,y,z,qx,qy,qz,n,q,dx,dy,dz,id,Iq,dIq,Qx,Qy,Qz,ix,iy,iz,nx,ny,nz,getParam,setParam,runXY
[aba5876]101
[d176f9c]102# Bad variable names which should always be refused, separated by a comma
103bad-names=foo,bar,baz,toto,tutu,tata
[aba5876]104
[d176f9c]105# Colon-delimited sets of names that determine each other's naming style when
106# the name regexes allow several styles.
107name-group=
108
109# Include a hint for the correct naming format with invalid-name
110include-naming-hint=no
[aba5876]111
[d176f9c]112# Regular expression matching correct function names
[aba5876]113function-rgx=[a-z_][a-z0-9_]{2,30}$
114
[d176f9c]115# Naming hint for function names
116function-name-hint=[a-z_][a-z0-9_]{2,30}$
117
118# Regular expression matching correct variable names
[d00294b]119variable-rgx=[a-z_][a-z0-9_{2D}{1D}]{2,30}$
[aba5876]120
[d176f9c]121# Naming hint for variable names
122variable-name-hint=[a-z_][a-z0-9_]{2,30}$
123
124# Regular expression matching correct constant names
125const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
126
127# Naming hint for constant names
128const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
129
130# Regular expression matching correct attribute names
[d00294b]131attr-rgx=[a-z_][a-z0-9__{2D}{1D}]{2,30}$
[aba5876]132
[d176f9c]133# Naming hint for attribute names
134attr-name-hint=[a-z_][a-z0-9_]{2,30}$
135
136# Regular expression matching correct argument names
[aba5876]137argument-rgx=[a-z_][a-z0-9_]{2,30}$
138
[d176f9c]139# Naming hint for argument names
140argument-name-hint=[a-z_][a-z0-9_]{2,30}$
[aba5876]141
[d176f9c]142# Regular expression matching correct class attribute names
143class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
144
145# Naming hint for class attribute names
146class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
147
148# Regular expression matching correct inline iteration names
[aba5876]149inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
150
[d176f9c]151# Naming hint for inline iteration names
152inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
[aba5876]153
[d176f9c]154# Regular expression matching correct class names
155class-rgx=[A-Z_][a-zA-Z0-9]+$
[aba5876]156
[d176f9c]157# Naming hint for class names
158class-name-hint=[A-Z_][a-zA-Z0-9]+$
[aba5876]159
[d176f9c]160# Regular expression matching correct module names
161module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
[aba5876]162
[d176f9c]163# Naming hint for module names
164module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
[aba5876]165
[d176f9c]166# Regular expression matching correct method names
167method-rgx=[a-z_][a-z0-9_]{2,30}$
[aba5876]168
[d176f9c]169# Naming hint for method names
170method-name-hint=[a-z_][a-z0-9_]{2,30}$
[aba5876]171
[d176f9c]172# Regular expression which should only match function or class names that do
173# not require a docstring.
174no-docstring-rgx=__.*__
175
176# Minimum line length for functions/classes that require docstrings, shorter
177# ones are exempt.
178docstring-min-length=-1
179
180[FORMAT]
181
182# Maximum number of characters on a single line.
183max-line-length=100
184
185# Regexp for a line that is allowed to be longer than the limit.
186ignore-long-lines=^\s*(# )?<?https?://\S+>?$
187
188# Allow the body of an if to be on the same line as the test if there is no
189# else.
190single-line-if-stmt=no
191
192# List of optional constructs for which whitespace checking is disabled
193no-space-check=trailing-comma,dict-separator
194
195# Maximum number of lines in a module
196max-module-lines=1000
197
198# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
199# tab).
200indent-string='    '
201
202# Number of spaces of indent required inside a hanging or continued line.
203indent-after-paren=4
204
205# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
206expected-line-ending-format=
207
208
209[LOGGING]
210
211# Logging modules to check that the string format arguments are in logging
212# function parameter format
213logging-modules=logging
214
215
216[MISCELLANEOUS]
217
218# List of note tags to take in consideration, separated by a comma.
219notes=FIXME,XXX,TODO
220
221
222[SIMILARITIES]
223
224# Minimum lines number of a similarity.
225min-similarity-lines=4
226
227# Ignore comments when computing similarities.
228ignore-comments=yes
229
230# Ignore docstrings when computing similarities.
231ignore-docstrings=yes
232
233# Ignore imports when computing similarities.
234ignore-imports=no
235
236
237[SPELLING]
238
239# Spelling dictionary name. Available dictionaries: none. To make it working
240# install python-enchant package.
241spelling-dict=
242
243# List of comma separated words that should not be checked.
244spelling-ignore-words=
245
246# A path to a file that contains private dictionary; one word per line.
247spelling-private-dict-file=
248
249# Tells whether to store unknown words to indicated private dictionary in
250# --spelling-private-dict-file option instead of raising a message.
251spelling-store-unknown-words=no
[aba5876]252
253
254[TYPECHECK]
255
256# Tells whether missing members accessed in mixin class should be ignored. A
257# mixin class is detected if its name ends with "mixin" (case insensitive).
258ignore-mixin-members=yes
259
[d176f9c]260# List of module names for which member attributes should not be checked
261# (useful for modules/projects where namespaces are manipulated during runtime
262# and thus existing member attributes cannot be deduced by static analysis
263ignored-modules=numpy
264
[aba5876]265# List of classes names for which member attributes should not be checked
266# (useful for classes with attributes dynamically set).
267ignored-classes=SQLObject
268
269# When zope mode is activated, add a predefined set of Zope acquired attributes
270# to generated-members.
271zope=no
272
273# List of members which are set dynamically and missed by pylint inference
[d176f9c]274# system, and so shouldn't trigger E0201 when accessed. Python regular
275# expressions are accepted.
[aba5876]276generated-members=REQUEST,acl_users,aq_parent
277
278
[d176f9c]279[VARIABLES]
280
281# Tells whether we should check for unused import in __init__ files.
282init-import=no
283
284# A regular expression matching the name of dummy variables (i.e. expectedly
285# not used).
286dummy-variables-rgx=_$|dummy
287
288# List of additional names supposed to be defined in builtins. Remember that
289# you should avoid to define new builtins when possible.
290additional-builtins=
291
292# List of strings which can identify a callback function by name. A callback
293# name must start or end with one of those strings.
294callbacks=cb_,_cb
295
296
[aba5876]297[CLASSES]
298
299# List of interface methods to ignore, separated by a comma. This is used for
300# instance to not check methods defines in Zope's Interface base class.
301ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
302
303# List of method names used to declare (i.e. assign) instance attributes.
304defining-attr-methods=__init__,__new__,setUp
305
[d176f9c]306# List of valid names for the first argument in a class method.
307valid-classmethod-first-arg=cls
[aba5876]308
[d176f9c]309# List of valid names for the first argument in a metaclass class method.
310valid-metaclass-classmethod-first-arg=mcs
[aba5876]311
[d176f9c]312# List of member names, which should be excluded from the protected access
313# warning.
314exclude-protected=_asdict,_fields,_replace,_source,_make
[aba5876]315
316
317[DESIGN]
318
319# Maximum number of arguments for function / method
320max-args=5
321
[d176f9c]322# Argument names that match this expression will be ignored. Default to name
323# with leading underscore
324ignored-argument-names=_.*
325
[aba5876]326# Maximum number of locals for function / method body
327max-locals=15
328
329# Maximum number of return / yield for function / method body
330max-returns=6
331
332# Maximum number of branch for function / method body
[d176f9c]333max-branches=12
[aba5876]334
335# Maximum number of statements in function / method body
336max-statements=50
337
338# Maximum number of parents for a class (see R0901).
339max-parents=7
340
341# Maximum number of attributes for a class (see R0902).
342max-attributes=7
343
344# Minimum number of public methods for a class (see R0903).
[e46cbc5]345min-public-methods=0
[aba5876]346
347# Maximum number of public methods for a class (see R0904).
348max-public-methods=20
349
350
[d176f9c]351[IMPORTS]
[aba5876]352
[d176f9c]353# Deprecated modules which should not be used, separated by a comma
354deprecated-modules=regsub,TERMIOS,Bastion,rexec
[aba5876]355
[d176f9c]356# Create a graph of every (i.e. internal and external) dependencies in the
357# given file (report RP0402 must not be disabled)
358import-graph=
[aba5876]359
[d176f9c]360# Create a graph of external dependencies in the given file (report RP0402 must
361# not be disabled)
362ext-import-graph=
[aba5876]363
[d176f9c]364# Create a graph of internal dependencies in the given file (report RP0402 must
365# not be disabled)
366int-import-graph=
[aba5876]367
368
[d176f9c]369[EXCEPTIONS]
[aba5876]370
[d176f9c]371# Exceptions that will emit a warning when being caught. Defaults to
372# "Exception"
373overgeneral-exceptions=Exception
Note: See TracBrowser for help on using the repository browser.