Enhance empty __init__ code-smell to check module_utils (#33438)

Empty __init__ will allow us to use python namespaces with all of these
files.  That may be something we want to take advantage of for allowign
them to be expanded by user dirs.  Also might be needed for AnsiballZ or
other wrapper enhancements in the future.
This commit is contained in:
Toshio Kuratomi 2017-11-30 15:47:38 -08:00 committed by GitHub
parent 8e6ebae8bd
commit 7bd0af15d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 23 deletions

View file

@ -1,7 +1,10 @@
Sanity Tests » empty-init
=========================
The ``__init__.py`` files under the following directories must be empty:
The ``__init__.py`` files under the following directories must be empty. For some of these (modules
and tests), ``__init__.py`` files with code won't be used. For others (module_utils), we want the
possibility of using Python namespaces which an empty ``__init__.py`` will allow for.
- ``lib/ansible/modules/``
- ``lib/ansible/module_utils/``
- ``test/units/``