Changeset d176f9c in sasview


Ignore:
Timestamp:
Mar 3, 2015 11:33:12 AM (10 years ago)
Author:
Doucet, Mathieu <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
d00294b
Parents:
9dedf40
Message:

Update pylint.rc (was form an older version)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build_tools/pylint.rc

    r3c3a440 rd176f9c  
    1 # lint Python modules using external checkers. 
    2 #  
    3 # This is the main checker controlling the other ones and the reports 
    4 # generation. It is itself both a raw checker and an astng checker in order 
    5 # to: 
    6 # * handle message activation / deactivation at the module level 
    7 # * handle some basic but necessary stats'data (number of classes, methods...) 
    8 #  
    91[MASTER] 
    102 
     
    1911profile=no 
    2012 
    21 # Add <file or directory> to the black list. It should be a base name, not a 
    22 # path. You may set this option multiple times. 
     13# Add files or directories to the blacklist. They should be base names, not 
     14# paths. 
    2315ignore=CVS 
    2416 
    2517# Pickle collected data for later comparisons. 
    2618persistent=yes 
    27  
    28 # Set the cache size for astng objects. 
    29 cache-size=500 
    3019 
    3120# List of plugins (as comma separated values of python modules names) to load, 
     
    3322load-plugins= 
    3423 
     24# Use multiple processes to speed up Pylint. 
     25jobs=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= 
    3535 
    3636[MESSAGES CONTROL] 
    3737 
    38 # Enable only checker(s) with the given id(s). This option conflicts with the 
    39 # disable-checker option 
    40 #enable-checker= 
    41  
    42 # Enable all checker(s) except those with the given id(s). This option 
    43 # conflicts with the enable-checker option 
    44 #disable-checker= 
    45  
    46 # Enable all messages in the listed categories (IRCWEF). 
    47 #enable-msg-cat= 
    48  
    49 # Disable all messages in the listed categories (IRCWEF). 
    50 disable-msg-cat=I 
    51  
    52 # Enable the message(s) with the given id(s). 
    53 #enable-msg= 
     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 
    5457 
    5558# Disable the message(s) with the given id(s). 
    56 disable-msg=W0704 
    57  
     59disable=W0702 
    5860 
    5961[REPORTS] 
    6062 
    6163# Set the output format. Available formats are text, parseable, colorized, msvs 
    62 # (visual studio) and html 
     64# (visual studio) and html. You can also give a reporter class, eg 
     65# mypackage.mymodule.MyReporterClass. 
    6366output-format=text 
    64  
    65 # Include message's id in output 
    66 include-ids=yes 
    6767 
    6868# Put messages in a separate file for each module / package specified on the 
     
    7878# respectively contain the number of errors / warnings messages and the total 
    7979# number of statements analyzed. This is used by the global evaluation report 
    80 # (R0004). 
     80# (RP0004). 
    8181evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) 
    8282 
    8383# Add a comment according to your evaluation note. This is used by the global 
    84 # evaluation report (R0004). 
     84# evaluation report (RP0004). 
    8585comment=no 
    8686 
    87 # Enable the report(s) with the given id(s). 
    88 #enable-report= 
    89  
    90 # Disable the report(s) with the given id(s). 
    91 #disable-report= 
    92  
    93  
    94 # checks for : 
    95 # * doc strings 
    96 # * modules / classes / functions / methods / arguments / variables name 
    97 # * number of arguments, local variables, branches, returns and statements in 
    98 # functions, methods 
    99 # * required module attributes 
    100 # * dangerous default values as arguments 
    101 # * redefinition of function / method / class 
    102 # * uses of the global statement 
    103 #  
     87# Template used to display messages. This is a python new-style format string 
     88# used to format the message information. See doc for all details 
     89#msg-template= 
     90 
    10491[BASIC] 
    10592 
     
    10794required-attributes= 
    10895 
    109 # Regular expression which should only match functions or classes name which do 
    110 # not require a docstring 
    111 no-docstring-rgx=__.*__ 
    112  
    113 # Regular expression which should only match correct module names 
    114 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ 
    115  
    116 # Regular expression which should only match correct module level names 
    117 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ 
    118  
    119 # Regular expression which should only match correct class names 
    120 class-rgx=[A-Z_][a-zA-Z0-9]+$ 
    121  
    122 # Regular expression which should only match correct function names 
    123 function-rgx=[a-z_][a-z0-9_]{2,30}$ 
    124  
    125 # Regular expression which should only match correct method names 
    126 method-rgx=[a-z_][a-z0-9_]{2,30}$ 
    127  
    128 # Regular expression which should only match correct instance attribute names 
    129 attr-rgx=[a-z_][a-z0-9_]{2,30}$ 
    130  
    131 # Regular expression which should only match correct argument names 
    132 argument-rgx=[a-z_][a-z0-9_]{2,30}$ 
    133  
    134 # Regular expression which should only match correct variable names 
    135 variable-rgx=[a-z_][a-z0-9_]{2,30}$ 
    136  
    137 # Regular expression which should only match correct list comprehension / 
    138 # generator expression variable names 
    139 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ 
     96# List of builtins function names that should not be used, separated by a comma 
     97bad-functions=map,filter,input 
    14098 
    14199# Good variable names which should always be accepted, separated by a comma 
    142 good-names=i,j,k,ex,Run,_,x,y,z,qx,qy,qz,n,q,dx,dy,dz 
     100good-names=i,j,k,ex,Run,_,x,y,z,qx,qy,qz,n,q,dx,dy,dz,id 
    143101 
    144102# Bad variable names which should always be refused, separated by a comma 
    145103bad-names=foo,bar,baz,toto,tutu,tata 
    146104 
    147 # List of builtins function names that should not be used, separated by a comma 
    148 bad-functions=map,filter,apply,input 
    149  
    150  
    151 # checks for 
    152 # * unused variables / imports 
    153 # * undefined variables 
    154 # * redefinition of variable from builtins or from an outer scope 
    155 # * use of variable before assignment 
    156 #  
     105# Colon-delimited sets of names that determine each other's naming style when 
     106# the name regexes allow several styles. 
     107name-group= 
     108 
     109# Include a hint for the correct naming format with invalid-name 
     110include-naming-hint=no 
     111 
     112# Regular expression matching correct function names 
     113function-rgx=[a-z_][a-z0-9_]{2,30}$ 
     114 
     115# Naming hint for function names 
     116function-name-hint=[a-z_][a-z0-9_]{2,30}$ 
     117 
     118# Regular expression matching correct variable names 
     119variable-rgx=[a-z_][a-z0-9_]{2,30}$ 
     120 
     121# Naming hint for variable names 
     122variable-name-hint=[a-z_][a-z0-9_]{2,30}$ 
     123 
     124# Regular expression matching correct constant names 
     125const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ 
     126 
     127# Naming hint for constant names 
     128const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ 
     129 
     130# Regular expression matching correct attribute names 
     131attr-rgx=[a-z_][a-z0-9_]{2,30}$ 
     132 
     133# Naming hint for attribute names 
     134attr-name-hint=[a-z_][a-z0-9_]{2,30}$ 
     135 
     136# Regular expression matching correct argument names 
     137argument-rgx=[a-z_][a-z0-9_]{2,30}$ 
     138 
     139# Naming hint for argument names 
     140argument-name-hint=[a-z_][a-z0-9_]{2,30}$ 
     141 
     142# Regular expression matching correct class attribute names 
     143class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ 
     144 
     145# Naming hint for class attribute names 
     146class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ 
     147 
     148# Regular expression matching correct inline iteration names 
     149inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ 
     150 
     151# Naming hint for inline iteration names 
     152inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ 
     153 
     154# Regular expression matching correct class names 
     155class-rgx=[A-Z_][a-zA-Z0-9]+$ 
     156 
     157# Naming hint for class names 
     158class-name-hint=[A-Z_][a-zA-Z0-9]+$ 
     159 
     160# Regular expression matching correct module names 
     161module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ 
     162 
     163# Naming hint for module names 
     164module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ 
     165 
     166# Regular expression matching correct method names 
     167method-rgx=[a-z_][a-z0-9_]{2,30}$ 
     168 
     169# Naming hint for method names 
     170method-name-hint=[a-z_][a-z0-9_]{2,30}$ 
     171 
     172# Regular expression which should only match function or class names that do 
     173# not require a docstring. 
     174no-docstring-rgx=__.*__ 
     175 
     176# Minimum line length for functions/classes that require docstrings, shorter 
     177# ones are exempt. 
     178docstring-min-length=-1 
     179 
     180[FORMAT] 
     181 
     182# Maximum number of characters on a single line. 
     183max-line-length=100 
     184 
     185# Regexp for a line that is allowed to be longer than the limit. 
     186ignore-long-lines=^\s*(# )?<?https?://\S+>?$ 
     187 
     188# Allow the body of an if to be on the same line as the test if there is no 
     189# else. 
     190single-line-if-stmt=no 
     191 
     192# List of optional constructs for which whitespace checking is disabled 
     193no-space-check=trailing-comma,dict-separator 
     194 
     195# Maximum number of lines in a module 
     196max-module-lines=1000 
     197 
     198# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 
     199# tab). 
     200indent-string='    ' 
     201 
     202# Number of spaces of indent required inside a hanging or continued line. 
     203indent-after-paren=4 
     204 
     205# Expected format of line ending, e.g. empty (any line ending), LF or CRLF. 
     206expected-line-ending-format= 
     207 
     208 
     209[LOGGING] 
     210 
     211# Logging modules to check that the string format arguments are in logging 
     212# function parameter format 
     213logging-modules=logging 
     214 
     215 
     216[MISCELLANEOUS] 
     217 
     218# List of note tags to take in consideration, separated by a comma. 
     219notes=FIXME,XXX,TODO 
     220 
     221 
     222[SIMILARITIES] 
     223 
     224# Minimum lines number of a similarity. 
     225min-similarity-lines=4 
     226 
     227# Ignore comments when computing similarities. 
     228ignore-comments=yes 
     229 
     230# Ignore docstrings when computing similarities. 
     231ignore-docstrings=yes 
     232 
     233# Ignore imports when computing similarities. 
     234ignore-imports=no 
     235 
     236 
     237[SPELLING] 
     238 
     239# Spelling dictionary name. Available dictionaries: none. To make it working 
     240# install python-enchant package. 
     241spelling-dict= 
     242 
     243# List of comma separated words that should not be checked. 
     244spelling-ignore-words= 
     245 
     246# A path to a file that contains private dictionary; one word per line. 
     247spelling-private-dict-file= 
     248 
     249# Tells whether to store unknown words to indicated private dictionary in 
     250# --spelling-private-dict-file option instead of raising a message. 
     251spelling-store-unknown-words=no 
     252 
     253 
     254[TYPECHECK] 
     255 
     256# Tells whether missing members accessed in mixin class should be ignored. A 
     257# mixin class is detected if its name ends with "mixin" (case insensitive). 
     258ignore-mixin-members=yes 
     259 
     260# List of module names for which member attributes should not be checked 
     261# (useful for modules/projects where namespaces are manipulated during runtime 
     262# and thus existing member attributes cannot be deduced by static analysis 
     263ignored-modules=numpy 
     264 
     265# List of classes names for which member attributes should not be checked 
     266# (useful for classes with attributes dynamically set). 
     267ignored-classes=SQLObject 
     268 
     269# When zope mode is activated, add a predefined set of Zope acquired attributes 
     270# to generated-members. 
     271zope=no 
     272 
     273# List of members which are set dynamically and missed by pylint inference 
     274# system, and so shouldn't trigger E0201 when accessed. Python regular 
     275# expressions are accepted. 
     276generated-members=REQUEST,acl_users,aq_parent 
     277 
     278 
    157279[VARIABLES] 
    158280 
     
    160282init-import=no 
    161283 
    162 # A regular expression matching names used for dummy variables (i.e. not used). 
    163 dummy-variables-rgx=_|dummy 
     284# A regular expression matching the name of dummy variables (i.e. expectedly 
     285# not used). 
     286dummy-variables-rgx=_$|dummy 
    164287 
    165288# List of additional names supposed to be defined in builtins. Remember that 
     
    167290additional-builtins= 
    168291 
    169  
    170 # try to find bugs in the code using type inference 
    171 #  
    172 [TYPECHECK] 
    173 ignored-modules = numpy 
    174  
    175 # Tells whether missing members accessed in mixin class should be ignored. A 
    176 # mixin class is detected if its name ends with "mixin" (case insensitive). 
    177 ignore-mixin-members=yes 
    178  
    179 # List of classes names for which member attributes should not be checked 
    180 # (useful for classes with attributes dynamically set). 
    181 ignored-classes=SQLObject 
    182  
    183 # When zope mode is activated, add a predefined set of Zope acquired attributes 
    184 # to generated-members. 
    185 zope=no 
    186  
    187 # List of members which are set dynamically and missed by pylint inference 
    188 # system, and so shouldn't trigger E0201 when accessed. 
    189 generated-members=REQUEST,acl_users,aq_parent 
    190  
    191  
    192 # checks for : 
    193 # * methods without self as first argument 
    194 # * overridden methods signature 
    195 # * access only to existent members via self 
    196 # * attributes not defined in the __init__ method 
    197 # * supported interfaces implementation 
    198 # * unreachable code 
    199 #  
     292# List of strings which can identify a callback function by name. A callback 
     293# name must start or end with one of those strings. 
     294callbacks=cb_,_cb 
     295 
     296 
    200297[CLASSES] 
    201298 
     
    207304defining-attr-methods=__init__,__new__,setUp 
    208305 
    209  
    210 # checks for 
    211 # * external modules dependencies 
    212 # * relative / wildcard imports 
    213 # * cyclic imports 
    214 # * uses of deprecated modules 
    215 #  
     306# List of valid names for the first argument in a class method. 
     307valid-classmethod-first-arg=cls 
     308 
     309# List of valid names for the first argument in a metaclass class method. 
     310valid-metaclass-classmethod-first-arg=mcs 
     311 
     312# List of member names, which should be excluded from the protected access 
     313# warning. 
     314exclude-protected=_asdict,_fields,_replace,_source,_make 
     315 
     316 
     317[DESIGN] 
     318 
     319# Maximum number of arguments for function / method 
     320max-args=5 
     321 
     322# Argument names that match this expression will be ignored. Default to name 
     323# with leading underscore 
     324ignored-argument-names=_.* 
     325 
     326# Maximum number of locals for function / method body 
     327max-locals=15 
     328 
     329# Maximum number of return / yield for function / method body 
     330max-returns=6 
     331 
     332# Maximum number of branch for function / method body 
     333max-branches=12 
     334 
     335# Maximum number of statements in function / method body 
     336max-statements=50 
     337 
     338# Maximum number of parents for a class (see R0901). 
     339max-parents=7 
     340 
     341# Maximum number of attributes for a class (see R0902). 
     342max-attributes=7 
     343 
     344# Minimum number of public methods for a class (see R0903). 
     345min-public-methods=2 
     346 
     347# Maximum number of public methods for a class (see R0904). 
     348max-public-methods=20 
     349 
     350 
    216351[IMPORTS] 
    217352 
    218353# Deprecated modules which should not be used, separated by a comma 
    219 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec 
     354deprecated-modules=regsub,TERMIOS,Bastion,rexec 
    220355 
    221356# Create a graph of every (i.e. internal and external) dependencies in the 
    222 # given file (report R0402 must not be disabled) 
     357# given file (report RP0402 must not be disabled) 
    223358import-graph= 
    224359 
    225 # Create a graph of external dependencies in the given file (report R0402 must 
     360# Create a graph of external dependencies in the given file (report RP0402 must 
    226361# not be disabled) 
    227362ext-import-graph= 
    228363 
    229 # Create a graph of internal dependencies in the given file (report R0402 must 
     364# Create a graph of internal dependencies in the given file (report RP0402 must 
    230365# not be disabled) 
    231366int-import-graph= 
    232367 
    233368 
    234 # checks for sign of poor/misdesign: 
    235 # * number of methods, attributes, local variables... 
    236 # * size, complexity of functions, methods 
    237 #  
    238 [DESIGN] 
    239  
    240 # Maximum number of arguments for function / method 
    241 max-args=5 
    242  
    243 # Maximum number of locals for function / method body 
    244 max-locals=15 
    245  
    246 # Maximum number of return / yield for function / method body 
    247 max-returns=6 
    248  
    249 # Maximum number of branch for function / method body 
    250 max-branchs=12 
    251  
    252 # Maximum number of statements in function / method body 
    253 max-statements=50 
    254  
    255 # Maximum number of parents for a class (see R0901). 
    256 max-parents=7 
    257  
    258 # Maximum number of attributes for a class (see R0902). 
    259 max-attributes=7 
    260  
    261 # Minimum number of public methods for a class (see R0903). 
    262 min-public-methods=0 
    263  
    264 # Maximum number of public methods for a class (see R0904). 
    265 max-public-methods=20 
    266  
    267  
    268 # checks for: 
    269 # * warning notes in the code like FIXME, XXX 
    270 # * PEP 263: source code with non ascii character but no encoding declaration 
    271 #  
    272 [MISCELLANEOUS] 
    273  
    274 # List of note tags to take in consideration, separated by a comma. 
    275 notes=FIXME,XXX,TODO 
    276  
    277  
    278 # checks for : 
    279 # * unauthorized constructions 
    280 # * strict indentation 
    281 # * line length 
    282 # * use of <> instead of != 
    283 #  
    284 [FORMAT] 
    285  
    286 # Maximum number of characters on a single line. 
    287 max-line-length=80 
    288  
    289 # Maximum number of lines in a module 
    290 max-module-lines=1000 
    291  
    292 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 
    293 # tab). 
    294 indent-string='    ' 
    295  
    296 no-space-check=trailing-comma,dict-separator 
    297  
    298 # checks for similarities and duplicated code. This computation may be 
    299 # memory / CPU intensive, so you should disable it if you experiments some 
    300 # problems. 
    301 #  
    302 [SIMILARITIES] 
    303  
    304 # Minimum lines number of a similarity. 
    305 min-similarity-lines=4 
    306  
    307 # Ignore comments when computing similarities. 
    308 ignore-comments=yes 
    309  
    310 # Ignore docstrings when computing similarities. 
    311 ignore-docstrings=yes 
     369[EXCEPTIONS] 
     370 
     371# Exceptions that will emit a warning when being caught. Defaults to 
     372# "Exception" 
     373overgeneral-exceptions=Exception 
Note: See TracChangeset for help on using the changeset viewer.