- Timestamp:
- Jan 29, 2016 10:46:54 PM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- eafc9fa
- Parents:
- 803f835
- Location:
- extra
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extra/pylint.rc
r803f835 r823e620 10 10 11 11 # Profiled execution. 12 profile=no12 #profile=no 13 13 14 14 # Add files or directories to the blacklist. They should be base names, not … … 92 92 # Add a comment according to your evaluation note. This is used by the global 93 93 # evaluation report (RP0004). 94 comment=no94 #comment=no 95 95 96 96 # Template used to display messages. This is a python new-style format string … … 101 101 102 102 # Required attributes for module, separated by a comma 103 required-attributes=103 #required-attributes= 104 104 105 105 # List of builtins function names that should not be used, separated by a comma … … 280 280 # (useful for modules/projects where namespaces are manipulated during runtime 281 281 # and thus existing member attributes cannot be deduced by static analysis 282 ignored-modules=numpy,np 282 ignored-modules=numpy,np,numpy.random, 283 bumps,sas, 283 284 284 285 # List of classes names for which member attributes should not be checked … … 288 289 # When zope mode is activated, add a predefined set of Zope acquired attributes 289 290 # to generated-members. 290 zope=no291 #zope=no 291 292 292 293 # List of members which are set dynamically and missed by pylint inference … … 318 319 # List of interface methods to ignore, separated by a comma. This is used for 319 320 # instance to not check methods defines in Zope's Interface base class. 320 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by321 #ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by 321 322 322 323 # List of method names used to declare (i.e. assign) instance attributes. -
extra/pylint_numpy.py
r63b32bb r823e620 8 8 #print("processing",module.name) 9 9 if module.name.startswith('numpy'): 10 if module.name == 'numpy': import numpy 11 elif module.name == 'numpy.random': import numpy.random 10 if module.name == 'numpy': 11 import numpy 12 elif module.name == 'numpy.random': 13 import numpy.random 14 from numpy.random import seed, get_state, set_state 12 15 -
extra/pylint_pyopencl.py
r3c56da87 r823e620 9 9 if module.name == 'pyopencl': 10 10 import pyopencl 11 import pyopencl as cl -
extra/run-pylint.py
rf01e53d r823e620 6 6 7 7 def main(): 8 extra = abspath(dirname(__file__)) 9 root = abspath(joinpath(extra, '..')) 10 8 11 envpath = os.environ.get('PYTHONPATH',None) 9 12 path = [envpath] if envpath else [] 10 path.append(abspath(dirname(__file__))) # so we can find the plugins 13 path.append(extra) 14 15 #bumps = abspath(joinpath(root, "..", "bumps")) 16 #periodictable = abspath(joinpath(root, "..", "periodictable")) 17 #sasview = abspath(joinpath(root, "..", "sasview", "src")) 18 #path.extend((bumps, periodictable, sasview)) 19 11 20 os.environ['PYTHONPATH'] = ':'.join(path) 12 root = abspath(joinpath(dirname(__file__), '..')) 21 22 # Run the lint command 23 cmd = "pylint --rcfile extra/pylint.rc -f parseable sasmodels" 13 24 os.chdir(root) 14 cmd = "pylint --rcfile extra/pylint.rc -f parseable sasmodels"15 25 status = os.system(cmd) 16 26 sys.exit(status)
Note: See TracChangeset
for help on using the changeset viewer.