source: sasmodels/extra/pylint.rc @ d4666ca

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since d4666ca was d4666ca, checked in by Paul Kienzle <pkienzle@…>, 8 years ago

delint

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