Use static, direct imports inside packages.
Use packages __init__ files to export nicer import paths.
Use __all__ to declare exported values in __init__ files for clarity.
Why is this needed
There are currently dynamic and wildcard imports in kube-hunter packages when they aren't necessary.
Dynamic imports are not so good practice and become a burden when using analytic tools (such as PyInstaller analyzer).
Wildcard imports are a bad practice since they obscure the source of an imported value and can load unnecessary values.
What would you like to be added
Use static, direct imports inside packages. Use packages
__init__
files to export nicer import paths. Use__all__
to declare exported values in__init__
files for clarity.Why is this needed
There are currently dynamic and wildcard imports in kube-hunter packages when they aren't necessary. Dynamic imports are not so good practice and become a burden when using analytic tools (such as PyInstaller analyzer). Wildcard imports are a bad practice since they obscure the source of an imported value and can load unnecessary values.