Tiendil / smart-imports

smart imports for Python
BSD 3-Clause "New" or "Revised" License
39 stars 6 forks source link

Implement class based rules #7

Closed Tiendil closed 5 years ago

Tiendil commented 6 years ago

Besides check "search import" functionality, rule should has some other:

That can be achieved with implementing class base views. For example:

class MyRule(Rule):

    def apply(config, module, variable):
        pass

    def check_config(config):
        pass