summaryrefslogtreecommitdiffstats
path: root/collections
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
commitba233a0cbad76b4783a03893e7bf4716fbc0f0ec (patch)
treead369728c1edbe3631c8150585659078ae5d7d0b /collections
parentReleasing progress-linux version 6.17.2-3~progress7.99u1. (diff)
downloadansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.tar.xz
ansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.zip
Merging upstream version 24.6.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collections')
-rw-r--r--collections/ansible_collections/local/testcollection/README.md3
-rw-r--r--collections/ansible_collections/local/testcollection/galaxy.yml7
-rw-r--r--collections/ansible_collections/local/testcollection/plugins/module_utils/__init__.py4
-rw-r--r--collections/ansible_collections/local/testcollection/plugins/module_utils/py.typed0
-rw-r--r--collections/ansible_collections/local/testcollection/plugins/modules/__init__.py1
-rw-r--r--collections/ansible_collections/local/testcollection/plugins/modules/module_with_relative_import.py25
6 files changed, 40 insertions, 0 deletions
diff --git a/collections/ansible_collections/local/testcollection/README.md b/collections/ansible_collections/local/testcollection/README.md
new file mode 100644
index 0000000..6c38018
--- /dev/null
+++ b/collections/ansible_collections/local/testcollection/README.md
@@ -0,0 +1,3 @@
+# Ansible Collection - local.testcollection
+
+Documentation for the collection.
diff --git a/collections/ansible_collections/local/testcollection/galaxy.yml b/collections/ansible_collections/local/testcollection/galaxy.yml
new file mode 100644
index 0000000..ac9bb7e
--- /dev/null
+++ b/collections/ansible_collections/local/testcollection/galaxy.yml
@@ -0,0 +1,7 @@
+---
+namespace: local
+name: testcollection
+version: 1.0.0
+readme: README.md
+authors:
+ - your name <example@domain.com>
diff --git a/collections/ansible_collections/local/testcollection/plugins/module_utils/__init__.py b/collections/ansible_collections/local/testcollection/plugins/module_utils/__init__.py
new file mode 100644
index 0000000..9854911
--- /dev/null
+++ b/collections/ansible_collections/local/testcollection/plugins/module_utils/__init__.py
@@ -0,0 +1,4 @@
+"""module_utils package."""
+
+# Some value that can be imported from a module
+MY_STRING: str = "foo"
diff --git a/collections/ansible_collections/local/testcollection/plugins/module_utils/py.typed b/collections/ansible_collections/local/testcollection/plugins/module_utils/py.typed
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/collections/ansible_collections/local/testcollection/plugins/module_utils/py.typed
diff --git a/collections/ansible_collections/local/testcollection/plugins/modules/__init__.py b/collections/ansible_collections/local/testcollection/plugins/modules/__init__.py
new file mode 100644
index 0000000..0d3a56a
--- /dev/null
+++ b/collections/ansible_collections/local/testcollection/plugins/modules/__init__.py
@@ -0,0 +1 @@
+"""modules package."""
diff --git a/collections/ansible_collections/local/testcollection/plugins/modules/module_with_relative_import.py b/collections/ansible_collections/local/testcollection/plugins/modules/module_with_relative_import.py
new file mode 100644
index 0000000..147a8d3
--- /dev/null
+++ b/collections/ansible_collections/local/testcollection/plugins/modules/module_with_relative_import.py
@@ -0,0 +1,25 @@
+"""module_with_relative_import module."""
+
+from ansible.module_utils.basic import AnsibleModule
+
+# pylint: disable=E0402
+from ..module_utils import MY_STRING # noqa: TID252 # type: ignore[import-untyped]
+
+DOCUMENTATION = r"""
+options:
+ name:
+ required: True
+"""
+
+
+def main() -> AnsibleModule:
+ """The main function."""
+ return AnsibleModule(
+ argument_spec={
+ "name": {"required": True, "aliases": [MY_STRING]},
+ },
+ )
+
+
+if __name__ == "__main__":
+ main()