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

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 6c82120 was 6c82120, checked in by Doucet, Mathieu <doucetm@…>, 9 years ago

put back pylint modules now that I know they work.

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