mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
straight up: ruff format (#11329)
* straight up: ruff format * Apply suggestions from code review
This commit is contained in:
parent
04d0a4daf3
commit
d549baa5e1
36 changed files with 438 additions and 396 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
DOCUMENTATION = '''
|
||||
DOCUMENTATION = """
|
||||
---
|
||||
module: collection_module
|
||||
short_description: Test collection module
|
||||
|
|
@ -14,11 +14,11 @@ description:
|
|||
- This is a test module in a local collection.
|
||||
author: "Felix Fontein (@felixfontein)"
|
||||
options: {}
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = ''' # '''
|
||||
EXAMPLES = """ # """
|
||||
|
||||
RETURN = ''' # '''
|
||||
RETURN = """ # """
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
|
@ -27,5 +27,5 @@ def main():
|
|||
AnsibleModule(argument_spec={}).exit_json()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
DOCUMENTATION = '''
|
||||
DOCUMENTATION = """
|
||||
---
|
||||
module: collection_module
|
||||
short_description: Test collection module
|
||||
|
|
@ -14,11 +14,11 @@ description:
|
|||
- This is a test module in a local collection.
|
||||
author: "Felix Fontein (@felixfontein)"
|
||||
options: {}
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = ''' # '''
|
||||
EXAMPLES = """ # """
|
||||
|
||||
RETURN = ''' # '''
|
||||
RETURN = """ # """
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
|
@ -27,5 +27,5 @@ def main():
|
|||
AnsibleModule(argument_spec={}).exit_json()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
DOCUMENTATION = '''
|
||||
DOCUMENTATION = """
|
||||
---
|
||||
module: collection_module
|
||||
short_description: Test collection module
|
||||
|
|
@ -14,11 +14,11 @@ description:
|
|||
- This is a test module in a local collection.
|
||||
author: "Felix Fontein (@felixfontein)"
|
||||
options: {}
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = ''' # '''
|
||||
EXAMPLES = """ # """
|
||||
|
||||
RETURN = ''' # '''
|
||||
RETURN = """ # """
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
|
@ -27,5 +27,5 @@ def main():
|
|||
AnsibleModule(argument_spec={}).exit_json()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
DOCUMENTATION = '''
|
||||
DOCUMENTATION = """
|
||||
---
|
||||
module: collection_module
|
||||
short_description: Test collection module
|
||||
|
|
@ -14,11 +14,11 @@ description:
|
|||
- This is a test module in a local collection.
|
||||
author: "Felix Fontein (@felixfontein)"
|
||||
options: {}
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = ''' # '''
|
||||
EXAMPLES = """ # """
|
||||
|
||||
RETURN = ''' # '''
|
||||
RETURN = """ # """
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
|
@ -27,5 +27,5 @@ def main():
|
|||
AnsibleModule(argument_spec={}).exit_json()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
DOCUMENTATION = '''
|
||||
DOCUMENTATION = """
|
||||
---
|
||||
module: local_module
|
||||
short_description: Test local module
|
||||
|
|
@ -14,11 +14,11 @@ description:
|
|||
- This is a test module locally next to a playbook.
|
||||
author: "Felix Fontein (@felixfontein)"
|
||||
options: {}
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = ''' # '''
|
||||
EXAMPLES = """ # """
|
||||
|
||||
RETURN = ''' # '''
|
||||
RETURN = """ # """
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
|
@ -27,5 +27,5 @@ def main():
|
|||
AnsibleModule(argument_spec={}).exit_json()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue