source: sasmodels/extra/pylint_numpy.py @ 61fd21d

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 61fd21d was 63b32bb, checked in by Paul Kienzle <pkienzle@…>, 10 years ago

lint cleaning

  • Property mode set to 100644
File size: 348 bytes
RevLine 
[3c56da87]1from astroid import MANAGER
2from astroid import nodes
3
4def register(linter):
5    MANAGER.register_transform(nodes.Module, transform)
6
7def transform(module):
8    #print("processing",module.name)
9    if module.name.startswith('numpy'):
[63b32bb]10        if module.name == 'numpy':  import numpy
[3c56da87]11        elif module.name == 'numpy.random': import numpy.random
12
Note: See TracBrowser for help on using the repository browser.