summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2017-12-01 00:47:38 +0100
committerGitHub <noreply@github.com>2017-12-01 00:47:38 +0100
commit7bd0af15d2af41c6c63cc3470870098041abcf4f (patch)
tree202ec68e6db787b8315a190a1c1e429736545dcf /docs
parentMake include_x inheritance more congruent with docs (#32769) (diff)
downloadansible-7bd0af15d2af41c6c63cc3470870098041abcf4f.tar.xz
ansible-7bd0af15d2af41c6c63cc3470870098041abcf4f.zip
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/docsite/rst/dev_guide/testing/sanity/empty-init.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/docsite/rst/dev_guide/testing/sanity/empty-init.rst b/docs/docsite/rst/dev_guide/testing/sanity/empty-init.rst
index 198380d980..391fdf67a8 100644
--- a/docs/docsite/rst/dev_guide/testing/sanity/empty-init.rst
+++ b/docs/docsite/rst/dev_guide/testing/sanity/empty-init.rst
@@ -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/``