1
0
Fork 0
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:
Alexei Znamensky 2025-12-28 01:36:24 +13:00 committed by GitHub
parent 04d0a4daf3
commit d549baa5e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 438 additions and 396 deletions

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -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()