[PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409)

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

Sort imports with ruff check --fix.

(cherry picked from commit 236b9c0e04)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2026-01-09 19:36:52 +01:00
committed by GitHub
parent ebaf2e71d5
commit b769b0bc01
829 changed files with 1644 additions and 1692 deletions

View File

@@ -7,8 +7,8 @@
from __future__ import annotations
import pytest
from ansible.inventory.data import InventoryData
from ansible_collections.community.general.plugins.inventory.icinga2 import InventoryModule

View File

@@ -5,10 +5,10 @@
from __future__ import annotations
import pytest
from ansible.inventory.data import InventoryData
from ansible.parsing.dataloader import DataLoader
from ansible.template import Templar
from ansible_collections.community.general.plugins.inventory.incus import (
InventoryModule,
)

View File

@@ -6,12 +6,12 @@ from __future__ import annotations
import pytest
import yaml
from ansible.inventory.data import InventoryData
from ansible.template import Templar
from ansible_collections.community.general.plugins.inventory.iocage import InventoryModule
from ansible_collections.community.internal_test_tools.tests.unit.utils.trust import make_trusted
from ansible_collections.community.general.plugins.inventory.iocage import InventoryModule
@pytest.fixture
def inventory():

View File

@@ -11,6 +11,7 @@ linode_apiv4 = pytest.importorskip("linode_api4")
from ansible.errors import AnsibleError
from ansible.parsing.dataloader import DataLoader
from ansible.template import Templar
from ansible_collections.community.general.plugins.inventory.linode import InventoryModule

View File

@@ -6,10 +6,9 @@
from __future__ import annotations
import pytest
from ansible.inventory.data import InventoryData
from ansible_collections.community.general.plugins.inventory.lxd import InventoryModule
from ansible_collections.community.general.plugins.inventory.lxd import InventoryModule
HOST_COMPARATIVE_DATA = {
"ansible_connection": "ssh",

View File

@@ -6,13 +6,11 @@
from __future__ import annotations
from collections import OrderedDict
import json
import os
from collections import OrderedDict
import pytest
from ansible import constants as C
from ansible.inventory.data import InventoryData
from ansible.inventory.manager import InventoryManager
@@ -22,7 +20,6 @@ from ansible_collections.community.internal_test_tools.tests.unit.mock.path impo
from ansible_collections.community.general.plugins.inventory.opennebula import InventoryModule
original_exists = os.path.exists
original_access = os.access

View File

@@ -7,8 +7,8 @@
from __future__ import annotations
import pytest
from ansible.inventory.data import InventoryData
from ansible_collections.community.general.plugins.inventory.xen_orchestra import InventoryModule
objects = {