Skip to content

Please bring back the inference of public interface from the __all__ listsΒ #759

@cpascual

Description

@cpascual

First of all, thanks for this amazing tool!

I wonder if there is some possibility of adding some config option to indicate tach that the expose list of an interface should be dynamically inferred from the content of the __all__ variable of the corresponding module, just like it did before 0.15.0 when we used the now-deprecated strict mode.

This would cover the use case of those of us that already maintain the definition of the public interface in __all__ .

I am aware that tach now auto-migrates tach.toml that containing strict and auto-populates the expose in the interfaces, but that is a one-time solution and forces us to either stop maintaining the __all__ values or duplicate the maintenance effort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions