mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
[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:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user