Hey! Amazed to find the very good support for visi...
# general
f
Hey! Amazed to find the very good support for visibility management in Pants, great job on that! One question, is it not possible to limit dependents to an init.py file?
1
🙏 2
Trying this, with no luck:
("<python_sources>","./**","//projects/**","!*"),
Ah nevermind, I figured it out. This works to create a public interface via the
__init__.py
file, hiding internal code:
Copy code
__dependents_rules__(
   ("<python_*>[__init__.py]", "//bases/**", "//components/**", "./**", "!*"),
   ("<python_*>", "./**", "!*"),
   ("<resources>", "./**","!*"),
)
👍 2