source: sasmodels/extra/pylint.rc @ 3c56da87

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

lint cleanup

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