Skip to content

Option to permit relative imports shallower than a given threshold #25

Description

@bskinn

E.g., with max_level=2 (or whatever rubric), permit from .sibling import func and from ..parent_sibling.cousin import Class but disallow from ...grandparent_sibling import foo.

Would this call for a new error code? Or just an evolution of the current ABS101, where the current behavior of the plugin is effectively max_level=0 in the above rubric.

Metadata

Metadata

Assignees

No one assigned

    Labels

    maybeMight or might not implement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions