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

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

update pylint.rc to match design

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