source: sasmodels/extra/pylint.rc @ 6e68289

core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 6e68289 was 6e68289, checked in by Paul Kienzle <pkienzle@…>, 6 years ago

suppress lint errors from scipy

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