1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00

Sort imports with ruff check --fix (#11400)

Sort imports with ruff check --fix.
This commit is contained in:
Felix Fontein 2026-01-09 07:40:58 +01:00 committed by GitHub
parent 0e6ba07261
commit 236b9c0e04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
829 changed files with 1644 additions and 1692 deletions

View file

@ -7,7 +7,6 @@ from __future__ import annotations
import traceback
DOCUMENTATION = ""
EXAMPLES = ""
@ -15,7 +14,9 @@ EXAMPLES = ""
RETURN = ""
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.community.general.plugins.module_utils.cmd_runner import CmdRunner, cmd_runner_fmt as fmt
from ansible_collections.community.general.plugins.module_utils.cmd_runner import CmdRunner
from ansible_collections.community.general.plugins.module_utils.cmd_runner import cmd_runner_fmt as fmt
def main():

View file

@ -8,11 +8,9 @@ from __future__ import annotations
import os
import posixpath
import sys
from http.server import SimpleHTTPRequestHandler, HTTPServer
from http.server import HTTPServer, SimpleHTTPRequestHandler
from urllib.parse import unquote
# Argument parsing
if len(sys.argv) != 4:
print(f"Syntax: {sys.argv[0]} <bind> <port> <path>")

View file

@ -3,8 +3,9 @@
# SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import annotations
import ssl
import os
import ssl
import sys
root_dir = sys.argv[1]

View file

@ -5,10 +5,9 @@
from __future__ import annotations
import sys
import http.server
import socketserver
import sys
if __name__ == "__main__":
PORT = int(sys.argv[1])

View file

@ -3,6 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import annotations
import lmdb
map_size = 1024 * 100

View file

@ -28,8 +28,8 @@ EXAMPLES = ""
RETURN = ""
from ansible_collections.community.general.plugins.module_utils.module_helper import ModuleHelper
from ansible_collections.community.general.plugins.module_utils.mh.deco import check_mode_skip
from ansible_collections.community.general.plugins.module_utils.module_helper import ModuleHelper
class MSimple(ModuleHelper):

View file

@ -22,10 +22,10 @@ EXAMPLES = ""
RETURN = ""
from ansible_collections.community.general.plugins.module_utils.module_helper import ModuleHelper
from ansible_collections.community.general.plugins.module_utils.mh.mixins.deprecate_attrs import ( # noqa: F401, pylint: disable=unused-import
DeprecateAttrsMixin,
)
from ansible_collections.community.general.plugins.module_utils.module_helper import ModuleHelper
class MSimpleDA(ModuleHelper):

View file

@ -4,10 +4,10 @@
from __future__ import annotations
import daemon
from http.server import BaseHTTPRequestHandler, HTTPServer
import daemon
def write_to_output(stream, content):
stream.write(bytes(content, "utf-8"))

View file

@ -7,9 +7,8 @@
from __future__ import annotations
import sys
from xmlrpc.client import ServerProxy
from urllib.parse import quote
from xmlrpc.client import ServerProxy
proc = sys.argv[1]
value = sys.argv[2]